M1\Vars\Loader\PhpLoader::load PHP Method

load() public method

public load ( )
    public function load()
    {
        $content = (require $this->entity);
        if (is_callable($content)) {
            $content = call_user_func($content);
        }
        if (!is_array($content)) {
            throw new \RuntimeException(sprintf("'%s' does not return an array", $this->entity));
        }
        $this->content = $content;
        return $this;
    }
PhpLoader