public function init(): void
    {
        parent::init();

        if (!($this->contentFS instanceof Filesystem)) {
            throw new InvalidConfigException(sprintf('ContentFS must be instance of %s.', Filesystem::class));
        }
        if (!($this->cacheFS instanceof Filesystem)) {
            throw new InvalidConfigException(sprintf('CacheFS must be instance of %s.', Filesystem::class));
        }

        $this->iconGenerator = IconGenerator::build($this->iconSet);
        $this->formatterFactory = new FormatterFactory((array) $this->formatterConfigArray);
        $this->aliasFactory = AliasFactory::build($this->defaultAlias);
        $this->aliasFactory->addMultiple($this->aliasArray);
    }
public function init(): void
    {
        parent::init();

        if (!($this->contentFS instanceof Filesystem)) {
            throw new InvalidConfigException(sprintf('ContentFS must be instance of %s.', Filesystem::class));
        }
        if (!($this->cacheFS instanceof Filesystem)) {
            throw new InvalidConfigException(sprintf('CacheFS must be instance of %s.', Filesystem::class));
        }

        $this->iconGenerator = IconGenerator::build($this->iconSet);
        $this->formatterFactory = new FormatterFactory((array) $this->formatterConfigArray);
        $this->aliasFactory = AliasFactory::build($this->defaultAlias);
        $this->aliasFactory->addMultiple($this->aliasArray);
    }
public function init ( ) : void { parent :: init ( ) ; if ( ! ( $ this -> contentFS instanceof Filesystem ) ) { throw new InvalidConfigException ( sprintf ( 'ContentFS must be instance of %s.' , Filesystem :: class ) ) ; } if ( ! ( $ this -> cacheFS instanceof Filesystem ) ) { throw new InvalidConfigException ( sprintf ( 'CacheFS must be instance of %s.' , Filesystem :: class ) ) ; } $ this -> iconGenerator = IconGenerator :: build ( $ this -> iconSet ) ; $ this -> formatterFactory = new FormatterFactory ( ( array ) $ this -> formatterConfigArray ) ; $ this -> aliasFactory = AliasFactory :: build ( $ this -> defaultAlias ) ; $ this -> aliasFactory -> addMultiple ( $ this -> aliasArray ) ; }
Check initialization parameters and parse configs
@throws config\InvalidConfigException
Check initialization parameters and parse configs