Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6b38714

Browse files
feature#61919 [DependencyInjection] DeprecateExtensionInterface::getXsdValidationBasePath() andgetNamespace() (nicolas-grekas)
This PR was merged into the 7.4 branch.Discussion----------[DependencyInjection] Deprecate `ExtensionInterface::getXsdValidationBasePath()` and `getNamespace()`| Q | A| ------------- | ---| Branch? | 7.4| Bug fix? | no| New feature? | no| Deprecations? | yes| Issues | -| License | MITFollows the deprecation of XML config formats in#60568Bundles that need to support older versions of Symfony can keep the methods but need to add the ``@deprecated`` annotation on themCommits-------62dabe7 [DependencyInjection] Deprecate ExtensionInterface::getXsdValidationBasePath() and getNamespace()
2 parents00bb316 +62dabe7 commit6b38714

File tree

19 files changed

+90
-0
lines changed

19 files changed

+90
-0
lines changed

‎UPGRADE-7.4.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ DependencyInjection
3636
* Deprecate registering a service without a class when its id is a non-existing FQCN
3737
* Deprecate using`$this` or its internal scope from PHP config files; use the`$loader` variable instead
3838
* Deprecate XML configuration format, use YAML or PHP instead
39+
* Deprecate`ExtensionInterface::getXsdValidationBasePath()` and`getNamespace()`;
40+
bundles that need to support older versions of Symfony can keep the methods
41+
but need to add the`@deprecated` annotation on them
3942

4043
DoctrineBridge
4144
--------------

‎src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,17 @@ public function load(array $configs, ContainerBuilder $container): void
8585
}
8686
}
8787

88+
/**
89+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
90+
*/
8891
publicfunctiongetXsdValidationBasePath():string|false
8992
{
9093
return__DIR__.'/../Resources/config/schema';
9194
}
9295

96+
/**
97+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
98+
*/
9399
publicfunctiongetNamespace():string
94100
{
95101
return'http://symfony.com/schema/dic/debug';

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3567,11 +3567,17 @@ private function registerHtmlSanitizerConfiguration(array $config, ContainerBuil
35673567
}
35683568
}
35693569

3570+
/**
3571+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
3572+
*/
35703573
publicfunctiongetXsdValidationBasePath():string|false
35713574
{
35723575
return\dirname(__DIR__).'/Resources/config/schema';
35733576
}
35743577

3578+
/**
3579+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
3580+
*/
35753581
publicfunctiongetNamespace():string
35763582
{
35773583
return'http://symfony.com/schema/dic/symfony';

‎src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/ConfigBuilderCacheWarmerTest.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,17 @@ public function load(array $configs, ContainerBuilder $container): void
231231
{
232232
}
233233

234+
/**
235+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
236+
*/
234237
publicfunctiongetXsdValidationBasePath():string|false
235238
{
236239
returnfalse;
237240
}
238241

242+
/**
243+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
244+
*/
239245
publicfunctiongetNamespace():string
240246
{
241247
return'http://www.example.com/schema/acme';

‎src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/ExtensionWithoutConfigTestBundle/DependencyInjection/ExtensionWithoutConfigTestExtension.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ public function load(array $configs, ContainerBuilder $container): void
2020
{
2121
}
2222

23+
/**
24+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
25+
*/
2326
publicfunctiongetNamespace():string
2427
{
2528
return'';
2629
}
2730

31+
/**
32+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
33+
*/
2834
publicfunctiongetXsdValidationBasePath():string|false
2935
{
3036
returnfalse;

‎src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,17 @@ public function load(array $configs, ContainerBuilder $container): void
128128
{
129129
}
130130

131+
/**
132+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
133+
*/
131134
publicfunctiongetNamespace():string
132135
{
133136
return'';
134137
}
135138

139+
/**
140+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
141+
*/
136142
publicfunctiongetXsdValidationBasePath():string|false
137143
{
138144
returnfalse;

‎src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,11 +1041,17 @@ public function addUserProviderFactory(UserProviderFactoryInterface $factory): v
10411041
$this->userProviderFactories[] =$factory;
10421042
}
10431043

1044+
/**
1045+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
1046+
*/
10441047
publicfunctiongetXsdValidationBasePath():string|false
10451048
{
10461049
return__DIR__.'/../Resources/config/schema';
10471050
}
10481051

1052+
/**
1053+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
1054+
*/
10491055
publicfunctiongetNamespace():string
10501056
{
10511057
return'http://symfony.com/schema/dic/security';

‎src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,17 @@ private function normalizeBundleName(string $name): string
247247
return$name;
248248
}
249249

250+
/**
251+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
252+
*/
250253
publicfunctiongetXsdValidationBasePath():string|false
251254
{
252255
return__DIR__.'/../Resources/config/schema';
253256
}
254257

258+
/**
259+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
260+
*/
255261
publicfunctiongetNamespace():string
256262
{
257263
return'http://symfony.com/schema/dic/twig';

‎src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,17 @@ public function load(array $configs, ContainerBuilder $container): void
5858
->replaceArgument(3,newServiceClosureArgument(newReference('debug.file_link_formatter.url_format')));
5959
}
6060

61+
/**
62+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
63+
*/
6164
publicfunctiongetXsdValidationBasePath():string|false
6265
{
6366
return__DIR__.'/../Resources/config/schema';
6467
}
6568

69+
/**
70+
* @deprecated since Symfony 7.4, to be removed in Symfony 8.0 together with XML support.
71+
*/
6672
publicfunctiongetNamespace():string
6773
{
6874
return'http://symfony.com/schema/dic/webprofiler';
232 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp