Gregwar\RST\Builder::__construct PHP Метод

__construct() публичный Метод

public __construct ( $kernel = null )
    public function __construct($kernel = null)
    {
        $this->errorManager = new ErrorManager();
        if ($kernel) {
            $this->kernel = $kernel;
        } else {
            $this->kernel = new HTML\Kernel();
        }
        $this->kernel->initBuilder($this);
    }

Usage Example

Пример #1
0
 /**
  * Create a Slidey instance, using the slidey kernel
  */
 public function __construct()
 {
     parent::__construct(new Kernel());
     $this->copy(__DIR__ . '/static/slidey', 'slidey');
 }