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

Commit 3b6404d

Browse files
committed
ControllerLoaderFactory marked as deprecated
1 parent 6c45aab commit 3b6404d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Service/ControllerLoaderFactory.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
use Zend\ServiceManager\FactoryInterface;
1414
use Zend\ServiceManager\ServiceLocatorInterface;
1515

16+
/**
17+
* @deprecated please use the {@see \Zend\Mvc\Service\ControllerManagerFactory} factory instead:
18+
* this class will be removed in release 3.0
19+
*/
1620
class ControllerLoaderFactory implements FactoryInterface
1721
{
1822
/**
@@ -33,6 +37,12 @@ class ControllerLoaderFactory implements FactoryInterface
3337
*/
3438
public function createService(ServiceLocatorInterface $serviceLocator)
3539
{
40+
trigger_error(sprintf(
41+
'%s is deprecated; please use %s instead',
42+
__CLASS__,
43+
ControllerManagerFactory::class
44+
), E_USER_DEPRECATED);
45+
3646
$controllerLoader = new ControllerManager($serviceLocator);
3747
$controllerLoader->addPeeringServiceManager($serviceLocator);
3848

0 commit comments

Comments
 (0)