FactoryFoo.php 308 B

1234567891011121314
  1. <?php
  2. namespace ZendBench\ServiceManager\BenchAsset;
  3. use Zend\ServiceManager\FactoryInterface;
  4. use Zend\ServiceManager\ServiceLocatorInterface;
  5. class FactoryFoo implements FactoryInterface
  6. {
  7. public function createService(ServiceLocatorInterface $serviceLocator)
  8. {
  9. return new Foo();
  10. }
  11. }