canCreate($services, $requestedName); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $controller = new DocumentationController(); /** @var \Swagger\Annotations\Swagger */ $swagger = $container->get('Swagger\Annotations\Swagger'); $controller->setSwagger($swagger); return $controller; } public function createServiceWithName(ServiceLocatorInterface $services, $name, $requestedName) { return $this($services, $requestedName); } }