public function __construct(array $paths = array(), Logger $logger = null) { $this->paths = $paths; if (!$logger) { $c = ServiceContainer::getInstance(); $logger = $c['logger']; } $this->logger = $logger; }