Skip to content

Commit 09371ad

Browse files
committed
undeprecate the single-colon notation for controllers
1 parent a4bc4ac commit 09371ad

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)