public createService ( Zend\ServiceManager\ServiceLocatorInterface $locator ) : |
||
$locator | Zend\ServiceManager\ServiceLocatorInterface | |
Résultat |
/** * @param ServiceLocatorInterface $serviceLocator */ public function __construct(ServiceLocatorInterface $serviceLocator) { $serviceFactory = new ServiceFactory(); $this->service = $serviceFactory->createService($serviceLocator); $this->service->build(); $this->baseUrl = $this->service->getConfiguration()->getBaseUrl(); $this->basePath = $this->service->getConfiguration()->getBasePath(); }