Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 491d5fb

Browse files
committed
trigger_error on __construct in ControllerLoaderFactory
1 parent 920cbc4 commit 491d5fb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Service/ControllerLoaderFactory.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,15 @@
1414
*/
1515
class ControllerLoaderFactory extends ControllerManagerFactory
1616
{
17+
public function __construct()
18+
{
19+
trigger_error(
20+
sprintf(
21+
'The class %s has been deprecated; please use %s\\ControllerManagerFactory',
22+
__CLASS__,
23+
__NAMESPACE__
24+
),
25+
E_USER_DEPRECATED
26+
);
27+
}
1728
}

0 commit comments

Comments
 (0)