8000 bug #29386 undeprecate the single-colon notation for controllers (fbo… · symfony/symfony@eef2a94 · GitHub
[go: up one dir, main page]

Skip to content

Commit eef2a94

Browse files
bug #29386 undeprecate the single-colon notation for controllers (fbourigault)
This PR was merged into the 4.1 branch. Discussion ---------- undeprecate the single-colon notation for controllers | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A This is the same as #29218 but for `Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader`. Commits ------- 09371ad undeprecate the single-colon notation for controllers
2 parents 21db588 + 09371ad commit eef2a94

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function load($resource, $type = null)
9595

9696
if (1 === substr_count($controller, ':')) {
9797
$nonDeprecatedNotation = str_replace(':', '::', $controller);
98-
@trigger_error(sprintf('Referencing controllers with a single colon is deprecated since Symfony 4.1, use "%s" instead.', $nonDeprecatedNotation), E_USER_DEPRECATED);
98+
// TODO deprecate this in 5.1
9999
}
100100

101101
$route->setDefault('_controller', $controller);

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/DelegatingLoaderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public function testConstructorApi()
2525
/**
2626
* @group legacy
2727
* @expectedDeprecation Referencing controllers with foo:bar:baz is deprecated since Symfony 4.1, use "some_parsed::controller" instead.
28-
* @expectedDeprecation Referencing controllers with a single colon is deprecated since Symfony 4.1, use "foo::baz" instead.
2928
*/
3029
public function testLoad()
3130
{

0 commit comments

Comments
 (0)
0