Gregwar\RST\Builder::__construct PHP Method

__construct() public method

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

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