/** * Default constructor. * * @param string $applicationPath absolute path of Zool application to deploy */ public function __construct($applicationPaths) { $this->applicationPaths = $applicationPaths; $this->log = LogProvider::forClass($this, false); }
private function logger($component, $property, $annotations, $afterCall) { $logAnnotation = $this->annotationManager->getAnnotation($annotations, self::LOGGER_ANNOTATION, $this->getTargetReflection($component, $property)); if (null !== $logAnnotation) { if ($afterCall) { $this->setToNull($component, $property); return; } $logkey = $logAnnotation->value === null ? $component : $logAnnotation->value; $injectValue = LogProvider::forClass($logkey); $component->{$property} = $injectValue; } }
/** * Default constructor. * * @param string $modulePath absolute path of Zool application to deploy */ public function __construct($modulePath, $baseModule = false) { $this->modulePath = Directory::normalize($modulePath); $this->log = LogProvider::forClass($this, false); $this->baseModule = $baseModule; }