/** * @test */ public function extensions_can_be_registered() { $container = $this->createContainer(['twig.extensions' => DI\add([DI\get(Twig_Extension_StringLoader::class)])]); /** @var Twig_Environment $twig */ $twig = $container->get(Twig_Environment::class); $this->assertTrue($twig->hasExtension('string_loader')); }
/** * @param string $token * @param string $uri */ public function __construct($token, $uri = 'http://www.ifsistem.com/api/v1') { $builder = new ContainerBuilder(Container::class); $builder->useAnnotations(true); $builder->addDefinitions(['sayfa' => \DI\get(SayfaService::class), 'menu' => \DI\get(MenuService::class), 'manset' => \DI\get(MansetService::class), 'haber' => \DI\get(HaberService::class), 'galeri' => \DI\get(GaleriService::class), 'iletisimMesaj' => \DI\get(IletisimMesajService::class), 'site' => \DI\get(SiteService::class), 'sehir' => \DI\get(SehirService::class), 'ilce' => \DI\get(IlceService::class), 'semt' => \DI\get(SemtService::class), 'emlak' => \DI\get(EmlakService::class), 'urun' => \DI\get(UrunService::class), 'kullanici' => \DI\get(KullaniciService::class), 'resim' => \DI\get(ResimService::class), 'reklam' => \DI\get(ReklamService::class), 'siparis' => \DI\get(SiparisService::class), 'sanat' => \DI\get(SanatService::class), 'grup' => \DI\get(GrupService::class), 'reference' => \DI\get(ReferenceService::class), 'api' => function () use($token, $uri) { return new ApiService($token, $uri); }, ApiService::class => \DI\get('api')]); // test $this->container = $builder->build(); }
public function getDefinitions() { return [\Twig_Loader_Filesystem::class => \DI\object()->constructor('/', '/'), \Twig_Environment::class => \DI\object()->constructorParameter('loader', \DI\get(\Twig_Loader_Filesystem::class)), \DateTime::class => \DI\object()->constructor('now', null)]; }
private function recreateLogSingleton($backend, $level = 'INFO') { $newEnv = new Environment('test', array('ini.log.log_writers' => array($backend), 'ini.log.log_level' => $level, 'ini.log.string_message_format' => self::STRING_MESSAGE_FORMAT, 'ini.log.logger_file_path' => self::getLogFileLocation(), 'Psr\\Log\\LoggerInterface' => \DI\get('Monolog\\Logger'))); $newEnv->init(); $newMonologLogger = $newEnv->getContainer()->make('Psr\\Log\\LoggerInterface'); $oldLogger = new Log($newMonologLogger); Log::setSingletonInstance($oldLogger); }
<?php return ['steps.before' => DI\add([DI\get('Couscous\\Module\\Template\\Step\\UseDefaultTemplate'), DI\get('Couscous\\Module\\Template\\Step\\FetchRemoteTemplate'), DI\get('Couscous\\Module\\Template\\Step\\ValidateTemplateDirectory')]), 'steps.postprocessing' => DI\add([DI\get('Couscous\\Module\\Template\\Step\\LoadAssets'), DI\get('Couscous\\Module\\Template\\Step\\AddPageListToLayoutVariables'), DI\get('Couscous\\Module\\Template\\Step\\ProcessTwigLayouts')])];
<?php return array('Piwik\\Plugins\\CoreUpdater\\Updater' => DI\object()->constructorParameter('tmpPath', DI\get('path.tmp')), 'diagnostics.optional' => DI\add(array(DI\get('Piwik\\Plugins\\CoreUpdater\\Diagnostic\\HttpsUpdateCheck'))));
<?php return array('tracker.request.processors' => DI\add(array(DI\get('Piwik\\Plugins\\Heartbeat\\Tracker\\PingRequestProcessor'))));
$level = strtoupper($c->get('ini.log.log_level')); if (!empty($level) && defined('Piwik\\Log::' . strtoupper($level))) { return Log::getMonologLevel(constant('Piwik\\Log::' . strtoupper($level))); } } return Logger::WARNING; }), 'log.file.filename' => DI\factory(function (ContainerInterface $c) { $logPath = $c->get('ini.log.logger_file_path'); // Absolute path if (strpos($logPath, '/') === 0) { return $logPath; } // Remove 'tmp/' at the beginning if (strpos($logPath, 'tmp/') === 0) { $logPath = substr($logPath, strlen('tmp')); } if (empty($logPath)) { // Default log file $logPath = '/logs/piwik.log'; } $logPath = $c->get('path.tmp') . $logPath; if (is_dir($logPath)) { $logPath .= '/piwik.log'; } return $logPath; }), 'Piwik\\Plugins\\Monolog\\Formatter\\LineMessageFormatter' => DI\object()->constructor(DI\get('log.format')), 'log.format' => DI\factory(function (ContainerInterface $c) { if ($c->has('ini.log.string_message_format')) { return $c->get('ini.log.string_message_format'); } return '%level% %tag%[%datetime%] %message%'; }));
<?php return ['event_manager' => \DI\decorate(function ($eventManager, $container) { $eventManager->attach('ERROR_DISPATCH', [$container->get(\ClassicApp\EventListener\DispatcherExceptionListener::class), 'onError']); $eventManager->attach('*', [$container->get(\ClassicApp\EventListener\ExceptionListener::class), 'onError']); return $eventManager; }), \ClassicApp\EventListener\ExceptionListener::class => \DI\object(\ClassicApp\EventListener\ExceptionListener::class)->constructor(\DI\get('template')), \ClassicApp\EventListener\DispatcherExceptionListener::class => \DI\object(\ClassicApp\EventListener\DispatcherExceptionListener::class)->constructor(\DI\get('template')), 'dispatcher' => \DI\factory(function (\DI\Container $c) { $dispatcher = new \ClassicApp\Dispatcher\SymfonyDispatcher($c->get('router')); return $dispatcher; }), 'session' => \DI\factory(function (\DI\Container $c) { $session = new \Symfony\Component\HttpFoundation\Session\Session(); $session->start(); return $session; }), 'translator' => \DI\factory(function () { $translator = new \Symfony\Component\Translation\Translator('en_US', new \Symfony\Component\Translation\MessageSelector()); $translator->addLoader('php', new \Symfony\Component\Translation\Loader\PhpFileLoader()); $translator->addResource('php', './app/Resources/translator/en_US.php', 'en_US'); $translator->addResource('php', './app/Resources/translator/it_IT.php', 'it_IT'); return $translator; }), 'template' => \DI\factory(function (\DI\Container $c) { $twigBridgeViews = __DIR__ . '/../vendor/symfony/twig-bridge/Resources/views/Form'; $loader = new Twig_Loader_Filesystem([$twigBridgeViews, './app/Resources/view']); $twig = new Twig_Environment($loader, $c->get('parameters')['twig']['loader_options']); $twig->addGlobal('show_exception_backtrace', $c->get('parameters')['twig']['show_exception_backtrace']); $twig->addGlobal('session', $c->get('session')); $formEngine = new \Symfony\Bridge\Twig\Form\TwigRendererEngine(['bootstrap_3_layout.html.twig']); $formEngine->setEnvironment($twig); $formExt = new \Symfony\Bridge\Twig\Extension\FormExtension(new \Symfony\Bridge\Twig\Form\TwigRenderer($formEngine)); $twig->addExtension($formExt); $transExt = new \Symfony\Bridge\Twig\Extension\TranslationExtension($c->get('translator')); $twig->addExtension($transExt);
<?php return ['steps.before' => DI\add([DI\get('Couscous\\Module\\Scripts\\Step\\ExecuteBeforeScripts')]), 'steps.after' => DI\add([DI\get('Couscous\\Module\\Scripts\\Step\\ExecuteAfterScripts')])];
<?php return array('Piwik\\Cache\\Backend' => DI\object('Piwik\\Cache\\Backend\\ArrayCache'), 'Piwik\\Translation\\Loader\\LoaderInterface' => DI\object('Piwik\\Translation\\Loader\\LoaderCache')->constructor(DI\get('Piwik\\Translation\\Loader\\DevelopmentLoader')), 'Piwik\\Translation\\Loader\\DevelopmentLoader' => DI\object()->constructor(DI\get('Piwik\\Translation\\Loader\\JsonFileLoader')));
<?php return ["parameters" => ["database" => ["host" => "127.0.0.1", "user" => "root", "password" => "root", "dbName" => "app"]], "redis" => \DI\object("Predis\\Client"), "rate-limiter" => \DI\object('App\\Service\\RateLimiter')->constructor(\DI\get("redis")), "router" => function () { return \FastRoute\simpleDispatcher(function (\FastRoute\RouteCollector $r) { $r->addRoute('GET', '/', ['App\\Controller\\IndexController', 'index'], ["name" => "index"]); $r->addRoute('GET', '/reset', ['App\\Controller\\MessageController', 'resetToken'], ["name" => "reset"]); $r->addRoute('GET', '/message', ['App\\Controller\\MessageController', 'getList'], ["name" => "message.list"]); $r->addRoute('POST', '/message', ['App\\Controller\\MessageController', 'create'], ["name" => "message.create"]); }); }];
<?php return array('Piwik\\Plugins\\CoreHome\\Tracker\\VisitRequestProcessor' => DI\object()->constructorParameter('visitStandardLength', DI\get('ini.Tracker.visit_standard_length')));
<?php use Psr\Log\LogLevel; use Symfony\Component\Console\Output\OutputInterface; return ['steps' => [DI\get('Couscous\\Module\\Config\\Step\\SetDefaultConfig'), DI\get('Couscous\\Module\\Config\\Step\\LoadConfig'), DI\get('Couscous\\Module\\Config\\Step\\OverrideBaseUrlForPreview'), DI\get('Couscous\\Module\\Scripts\\Step\\ExecuteBeforeScripts'), DI\get('Couscous\\Module\\Template\\Step\\UseDefaultTemplate'), DI\get('Couscous\\Module\\Template\\Step\\FetchRemoteTemplate'), DI\get('Couscous\\Module\\Template\\Step\\ValidateTemplateDirectory'), DI\get('Couscous\\Module\\Bower\\Step\\RunBowerInstall'), DI\get('Couscous\\Module\\Markdown\\Step\\LoadMarkdownFiles'), DI\get('Couscous\\Module\\Template\\Step\\LoadAssets'), DI\get('Couscous\\Module\\Core\\Step\\AddImages'), DI\get('Couscous\\Module\\Core\\Step\\AddCname'), DI\get('Couscous\\Module\\Core\\Step\\AddFileNameToMetadata'), DI\get('Couscous\\Module\\Markdown\\Step\\ParseMarkdownFrontMatter'), DI\get('Couscous\\Module\\Markdown\\Step\\ProcessMarkdownFileName'), DI\get('Couscous\\Module\\Markdown\\Step\\RewriteMarkdownLinks'), DI\get('Couscous\\Module\\Markdown\\Step\\RenderMarkdown'), DI\get('Couscous\\Module\\Markdown\\Step\\CreateHeadingIds'), DI\get('Couscous\\Module\\Template\\Step\\AddPageListToLayoutVariables'), DI\get('Couscous\\Module\\Template\\Step\\ProcessTwigLayouts'), DI\get('Couscous\\Module\\Core\\Step\\ClearTargetDirectory'), DI\get('Couscous\\Module\\Core\\Step\\WriteFiles'), DI\get('Couscous\\Module\\Scripts\\Step\\ExecuteAfterScripts')], 'Couscous\\Generator' => DI\object()->constructorParameter('steps', DI\get('steps')), 'application' => DI\object('Symfony\\Component\\Console\\Application')->method('add', DI\get('Couscous\\Application\\Cli\\GenerateCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\PreviewCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\DeployCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\ClearCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\TravisAutoDeployCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\InitTemplateCommand')), 'Symfony\\Component\\Console\\Logger\\ConsoleLogger' => DI\object()->constructorParameter('verbosityLevelMap', [LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL, LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL, LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL, LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL, LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL, LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL, LogLevel::INFO => OutputInterface::VERBOSITY_VERBOSE, LogLevel::DEBUG => OutputInterface::VERBOSITY_VERY_VERBOSE])];
} return $root . '/tmp' . $instanceId; }, 'path.cache' => DI\string('{path.tmp}/cache/tracker/'), 'Piwik\\Cache\\Eager' => function (ContainerInterface $c) { $backend = $c->get('Piwik\\Cache\\Backend'); $cacheId = $c->get('cache.eager.cache_id'); if (SettingsServer::isTrackerApiRequest()) { $eventToPersist = 'Tracker.end'; $cacheId .= 'tracker'; } else { $eventToPersist = 'Request.dispatch.end'; $cacheId .= 'ui'; } $cache = new Eager($backend, $cacheId); \Piwik\Piwik::addAction($eventToPersist, function () use($cache) { $cache->persistCacheIfNeeded(43200); }); return $cache; }, 'Piwik\\Cache\\Backend' => function (ContainerInterface $c) { try { $backend = $c->get('ini.Cache.backend'); } catch (NotFoundException $ex) { $backend = 'chained'; // happens if global.ini.php is not available } return \Piwik\Cache::buildBackend($backend); }, 'cache.eager.cache_id' => function () { return 'eagercache-' . str_replace(array('.', '-'), '', \Piwik\Version::VERSION) . '-'; }, 'Psr\\Log\\LoggerInterface' => DI\object('Psr\\Log\\NullLogger'), 'Piwik\\Translation\\Loader\\LoaderInterface' => DI\object('Piwik\\Translation\\Loader\\LoaderCache')->constructor(DI\get('Piwik\\Translation\\Loader\\JsonFileLoader')), 'observers.global' => array(), 'Piwik\\EventDispatcher' => DI\object()->constructorParameter('observers', DI\get('observers.global')), 'Zend_Validate_EmailAddress' => function () { return new \Zend_Validate_EmailAddress(array('hostname' => new \Zend_Validate_Hostname(array('tld' => false)))); }, 'tracker.request.processors' => array(), 'Piwik\\Tracker\\VisitorRecognizer' => DI\object()->constructorParameter('trustCookiesOnly', DI\get('ini.Tracker.trust_visitors_cookies'))->constructorParameter('visitStandardLength', DI\get('ini.Tracker.visit_standard_length'))->constructorParameter('lookbackNSecondsCustom', DI\get('ini.Tracker.window_look_back_for_visitor'))->constructorParameter('trackerAlwaysNewVisitor', DI\get('ini.Debug.tracker_always_new_visitor')), 'Piwik\\Tracker\\Settings' => DI\object()->constructorParameter('isSameFingerprintsAcrossWebsites', DI\get('ini.Tracker.enable_fingerprinting_across_websites')));
<?php declare (strict_types=1); use App\Http\Controllers\MainController; use App\Console\DoctrineFixtureLoadCommand; /* * PHPDI definition through $containerBuilder */ // container config $containerBuilder->useAutowiring(true); $containerBuilder->useAnnotations(false); // change cache driver to more performant on production environment $containerBuilder->setDefinitionCache(new \Doctrine\Common\Cache\ArrayCache()); $containerBuilder->addDefinitions(['Twig_Environment' => \DI\get('twig'), \Doctrine\ORM\EntityManager::class => \DI\get('orm.em'), DoctrineFixtureLoadCommand::class => \DI\object(DoctrineFixtureLoadCommand::class), MainController::class => \DI\object(MainController::class)]);
<?php return array('tracker.request.processors' => DI\add(array(DI\get('Piwik\\Plugins\\SitesManager\\Tracker\\SitesManagerRequestProcessor'))));
<?php $repository = $config['repository']; return ['dependencies' => ['repository' => $config['repository'], 'EntityManager' => DI\factory([FNBr\Infrastructure\Persistence\Doctrine\EntityManagerFactory::class, 'build']), '*Repository' => DI\factory("FNBr\\Infrastructure\\Persistence\\RepositoryFactory"), 'ColorQueryService' => DI\object(FNBr\Application\Service\Color\QueryService::class)->constructor(DI\get('ColorRepository')), 'ColorSaveService' => DI\object(FNBr\Application\Service\Color\SaveService::class)->constructor(DI\get('ColorRepository'))]];
<?php use DI\ContainerBuilder; return call_user_func(function () { $builder = new ContainerBuilder(); $builder->useAnnotations(false); $builder->useAutowiring(false); $builder->addDefinitions(['cache_path' => '/tmp/cache', CacheProvider::class => \DI\object(FileCache::class)->constructorParameter('path', \DI\get('cache_path')), UserRepository::class => \DI\object()->constructorParameter('cache', \DI\get(CacheProvider::class))]); return $builder->build(); });
<?php use Interop\Container\ContainerInterface; use Psr\Log\LogLevel; use Symfony\Component\Console\Output\OutputInterface; return ['steps.init' => [], 'steps.before' => [], 'steps.preprocessing' => [], 'steps.postprocessing' => [], 'steps.after' => [], 'steps' => function (ContainerInterface $c) { return array_merge($c->get('steps.init'), $c->get('steps.before'), $c->get('steps.preprocessing'), $c->get('steps.postprocessing'), $c->get('steps.after')); }, 'Couscous\\Generator' => DI\object()->constructorParameter('steps', DI\get('steps')), 'application' => DI\object('Symfony\\Component\\Console\\Application')->method('add', DI\get('Couscous\\Application\\Cli\\GenerateCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\PreviewCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\DeployCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\ClearCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\TravisAutoDeployCommand'))->method('add', DI\get('Couscous\\Application\\Cli\\InitTemplateCommand')), 'Symfony\\Component\\Console\\Logger\\ConsoleLogger' => DI\object()->constructorParameter('verbosityLevelMap', [LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL, LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL, LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL, LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL, LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL, LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL, LogLevel::INFO => OutputInterface::VERBOSITY_VERBOSE, LogLevel::DEBUG => OutputInterface::VERBOSITY_VERY_VERBOSE])];
<?php return ['steps.after' => DI\add([DI\get('Couscous\\Module\\Core\\Step\\ClearTargetDirectory'), DI\get('Couscous\\Module\\Core\\Step\\WriteFiles')])];
<?php return array('tracker.request.processors' => DI\add(array(DI\get('Piwik\\Plugins\\Ecommerce\\Tracker\\EcommerceRequestProcessor'))));
<?php use Ratchet\Http\HttpServerInterface; use React\Socket\ServerInterface; use stigsb\pixelpong\bitmap\BitmapLoader; use stigsb\pixelpong\bitmap\FontLoader; use stigsb\pixelpong\frame\FrameBuffer; use stigsb\pixelpong\frame\OffscreenFrameBuffer; $__topdir = dirname(__DIR__); $__w = 47; $__h = 27; return ['framebuffer.width' => $__w, 'framebuffer.height' => $__h, 'server.port' => DI\env('PONG_PORT', '4432'), 'server.bind_addr' => DI\env('PONG_BIND_ADDR', '0.0.0.0'), 'server.fps' => DI\env('PONG_FPS', '10.0'), FrameBuffer::class => DI\object(OffscreenFrameBuffer::class)->constructor(DI\get('framebuffer.width'), DI\get('framebuffer.height')), ServerInterface::class => DI\object(React\Socket\Server::class), HttpServerInterface::class => DI\object(Ratchet\WebSocket\WsServer::class), FontLoader::class => DI\object(FontLoader::class)->constructor("{$__topdir}/res/fonts"), BitmapLoader::class => DI\object(BitmapLoader::class)->constructor("{$__topdir}/res/bitmaps/{$__w}x{$__h}:{$__topdir}/res/sprites")];
} else { $instanceId = ''; } return $root . '/tmp' . $instanceId; }, 'path.cache' => DI\string('{path.tmp}/cache/tracker/'), 'Piwik\\Cache\\Eager' => function (ContainerInterface $c) { $backend = $c->get('Piwik\\Cache\\Backend'); $cacheId = $c->get('cache.eager.cache_id'); if (SettingsServer::isTrackerApiRequest()) { $eventToPersist = 'Tracker.end'; $cacheId .= 'tracker'; } else { $eventToPersist = 'Request.dispatch.end'; $cacheId .= 'ui'; } $cache = new Eager($backend, $cacheId); \Piwik\Piwik::addAction($eventToPersist, function () use($cache) { $cache->persistCacheIfNeeded(43200); }); return $cache; }, 'Piwik\\Cache\\Backend' => function (ContainerInterface $c) { try { $backend = $c->get('ini.Cache.backend'); } catch (NotFoundException $ex) { $backend = 'chained'; // happens if global.ini.php is not available } return \Piwik\Cache::buildBackend($backend); }, 'cache.eager.cache_id' => function () { return 'eagercache-' . str_replace(array('.', '-'), '', \Piwik\Version::VERSION) . '-'; }, 'Psr\\Log\\LoggerInterface' => DI\object('Psr\\Log\\NullLogger'), 'Piwik\\Translation\\Loader\\LoaderInterface' => DI\object('Piwik\\Translation\\Loader\\LoaderCache')->constructor(DI\get('Piwik\\Translation\\Loader\\JsonFileLoader')), 'observers.global' => array(), 'Piwik\\EventDispatcher' => DI\object()->constructorParameter('observers', DI\get('observers.global')));
<?php return array('tracker.request.processors' => DI\add(array(DI\get('Piwik\\Plugins\\Actions\\Tracker\\ActionsRequestProcessor'))));
<?php return ['event_manager' => \DI\decorate(function ($eventManager, $container) { $eventManager->attach("ERROR_DISPATCH", [$container->get(\ClassicApp\EventListener\DispatcherExceptionListener::class), "onError"]); $eventManager->attach("*_error", [$container->get(\ClassicApp\EventListener\ExceptionListener::class), "onError"]); return $eventManager; }), \ClassicApp\EventListener\ExceptionListener::class => \DI\object(\ClassicApp\EventListener\ExceptionListener::class)->constructor(\DI\get("template")), \ClassicApp\EventListener\DispatcherExceptionListener::class => \DI\object(\ClassicApp\EventListener\DispatcherExceptionListener::class)->constructor(\DI\get("template")), 'template' => \DI\object(\League\Plates\Engine::class)->constructor('./app/view/'), 'router' => function () { return \FastRoute\simpleDispatcher(function (\FastRoute\RouteCollector $r) { $r->addRoute('GET', '/', ['ClassicApp\\Controller\\IndexController', 'index']); }); }];
public static function provideContainerConfigBeforeClass() { return array('Psr\\Log\\LoggerInterface' => \DI\get('Monolog\\Logger')); }
public static function provideContainerConfigBeforeClass() { return array('Psr\\Log\\LoggerInterface' => \DI\get('Monolog\\Logger'), 'Piwik\\Translation\\Translator' => function (ContainerInterface $c) { return new \Piwik\Translation\Translator($c->get('Piwik\\Translation\\Loader\\LoaderInterface')); }); }
<?php return ['steps.preprocessing' => DI\add([DI\get('Couscous\\Module\\Bower\\Step\\RunBowerInstall')])];
<?php return [ZohoBooksAL\Configuration\Reader\ConfigFileReader::class => DI\object()->constructorParameter('configurationFileName', __DIR__ . '/../config.inc.php'), ZohoBooksAL\Persister\PersistedEntityTracker::class => DI\object()->scope(\DI\Scope::PROTOTYPE), ZohoBooksAL\Configuration\Configuration::class => DI\object()->constructorParameter('configurationReader', DI\get(ZohoBooksAL\Configuration\Reader\ConfigFileReader::class)), ZohoBooksAL\Transport\GenericTransport::class => DI\object()->constructorParameter('httpClient', DI\get(GuzzleHttp\Client::class)), ZohoBooksAL\Mapper\GenericMapper::class => DI\object()->constructorParameter('transport', DI\get(ZohoBooksAL\Transport\GenericTransport::class)), ZohoBooksAL\EntityManager::class => DI\object()->constructorParameter('configuration', DI\get(ZohoBooksAL\Configuration\Configuration::class)), ZohoBooksAL\Transport\Uri\Uri::class => DI\object()->constructorParameter('configuration', DI\get(ZohoBooksAL\Configuration\Configuration::class)), ZohoBooksAL\UnitOfWork::class => DI\object()->constructorParameter('mapper', DI\get(ZohoBooksAL\Mapper\GenericMapper::class)), Zend\Code\Annotation\AnnotationManager::class => DI\object()->method('attach', DI\get(ZohoBooksAL\Code\Annotation\Parser\AnnotationParser::class)), ZohoBooksAL\Metadata\Collector\EntityCollector::class => DI\object()->constructorParameter('manager', DI\get(Zend\Code\Annotation\AnnotationManager::class))->constructorParameter('scanner', DI\get(Zend\Code\Scanner\DirectoryScanner::class)), ZohoBooksAL\Metadata\MetadataCollection::class => DI\object()->constructorParameter('collector', DI\get(ZohoBooksAL\Metadata\Collector\EntityCollector::class))];