get('ConsoleViewManager')->attach($application->getEventManager()); return $application; } /** * zend-servicemanager v2 compatibility. * * Proxies to __invoke(). * * @param ServiceLocatorInterface $container * @param string $name * @param string $requestedName * @param callable $callback * @return \Zend\Mvc\ApplicationInterface */ public function createDelegatorWithName(ServiceLocatorInterface $container, $name, $requestedName, $callback) { return $this($container, $requestedName, $callback); } }