public function enableComponent($name)
    {
        if (!array_key_exists($name, $this->components)) {
            throw new NotValidCompoenentException($name . ' component is not valid');
        }

        $this->components[$name] = true;

        return $this;
    }
public function enableComponent($name)
    {
        if (!array_key_exists($name, $this->components)) {
            throw new NotValidCompoenentException($name . ' component is not valid');
        }

        $this->components[$name] = true;

        return $this;
    }
public function enableComponent ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> components ) ) { throw new NotValidCompoenentException ( $ name . ' component is not valid' ) ; } $ this -> components [ $ name ] = true ; return $ this ; }
Enable named component for compiler

@param string $name component name

@return $this
Enable named component for compiler