Пример #1
0
 public function createService(ServiceLocatorInterface $sm)
 {
     $configLocaleListener = $sm->get('Base\\Manager\\Listener\\ConfigLocaleListener');
     $configManager = new ConfigManager($sm->get('Config'));
     $eventManager = $configManager->getEventManager();
     $eventManager->attach($configLocaleListener);
     $configManager->prepare();
     return $configManager;
 }
Пример #2
0
 public function __construct(ConfigManager $configManager)
 {
     $this->serializer = new JsonSerializer();
     $this->cookieName = $configManager->need('redirect_config.cookie_name');
     $this->defaultOrigin = $configManager->need('redirect_config.default_origin');
 }