Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ZeTheme/Service/ManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* file that was distributed with this source code.
*/
namespace ZeTheme\Service;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\FactoryInterface,
Zend\ServiceManager\ServiceLocatorInterface,
ZeTheme\Manager;
Expand All @@ -31,4 +32,9 @@ public function createService(ServiceLocatorInterface $serviceLocator)
$manager = new Manager($serviceLocator, $config['ze_theme']);
return $manager;
}

public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
return $this->createService($container);
}
}