AsseticBundle\View\Helper\Asset::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator )
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface
    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();
    }