Pipe\DirectiveProcessor::prepare PHP Метод

prepare() защищенный Метод

# Returns nothing.
protected prepare ( )
    protected function prepare()
    {
        $this->register('require', function ($context, $path) {
            $context->requireAsset($path);
        });
        $this->register('depend_on', function ($context, $path) {
            $context->dependOn($path);
        });
        $this->register('require_tree', function ($context, $path) {
            $context->requireTree($path);
        });
        $this->body = $this->getData();
        if (preg_match(static::HEADER_PATTERN, $this->getData(), $matches)) {
            $this->header = $matches[0];
            $this->body = substr($this->getData(), strlen($matches[0])) ?: '';
        }
        $this->processed = array();
    }