public function init()
    {
        parent::init();
        $this->basePath = Reaction::$app->getAlias($this->basePath);
        if (!is_dir($this->basePath)) {
            throw new InvalidConfigException("The directory does not exist: {$this->basePath}");
        } elseif (!is_writable($this->basePath)) {
            throw new InvalidConfigException("The directory is not writable by the Web process: {$this->basePath}");
        }

        $this->basePath = realpath($this->basePath);
        $this->baseUrl = rtrim(Reaction::$app->getAlias($this->baseUrl), '/');
    }
public function init()
    {
        parent::init();
        $this->basePath = Reaction::$app->getAlias($this->basePath);
        if (!is_dir($this->basePath)) {
            throw new InvalidConfigException("The directory does not exist: {$this->basePath}");
        } elseif (!is_writable($this->basePath)) {
            throw new InvalidConfigException("The directory is not writable by the Web process: {$this->basePath}");
        }

        $this->basePath = realpath($this->basePath);
        $this->baseUrl = rtrim(Reaction::$app->getAlias($this->baseUrl), '/');
    }
public function init ( ) { parent :: init ( ) ; $ this -> basePath = Reaction :: $ app -> getAlias ( $ this -> basePath ) ; if ( ! is_dir ( $ this -> basePath ) ) { throw new InvalidConfigException ( "The directory does not exist: {$this->basePath}" ) ; } elseif ( ! is_writable ( $ this -> basePath ) ) { throw new InvalidConfigException ( "The directory is not writable by the Web process: {$this->basePath}" ) ; } $ this -> basePath = realpath ( $ this -> basePath ) ; $ this -> baseUrl = rtrim ( Reaction :: $ app -> getAlias ( $ this -> baseUrl ) , '/' ) ; }
Initializes the component.
@throws InvalidConfigException if [[basePath]] is invalid
Initializes the component .