[COMPOSER] Add new php-ffmpeg package
This commit is contained in:
21
vendor/zendframework/zend-servicemanager/benchmarks/BenchAsset/AbstractFactoryFoo.php
vendored
Normal file
21
vendor/zendframework/zend-servicemanager/benchmarks/BenchAsset/AbstractFactoryFoo.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace ZendBench\ServiceManager\BenchAsset;
|
||||
|
||||
use Zend\ServiceManager\AbstractFactoryInterface;
|
||||
use Zend\ServiceManager\ServiceLocatorInterface;
|
||||
|
||||
class AbstractFactoryFoo implements AbstractFactoryInterface
|
||||
{
|
||||
public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
|
||||
{
|
||||
if ($name != 'foo') {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
|
||||
{
|
||||
return new Foo();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user