PhroznPlugin\Provider\PluginProvider::get PHP Method

get() public method

Get generated content
public get ( ) : mixed
return mixed
    public function get()
    {
        $config = $this->getConfig();
        if (!isset($config['input'])) {
            throw new \Exception('No input file provided.');
        }
        $path = $this->getProjectPath() . '/' . $config['input'];
        if (!is_readable($path)) {
            throw new \Exception(sprintf('Input file "%s" not found.', $path));
        }
        return file_get_contents($path);
    }
PluginProvider