N98\Magento\Command\ScriptCommand::_getContent PHP Method

_getContent() protected method

protected _getContent ( string $filename ) : string
$filename string
return string
    protected function _getContent($filename)
    {
        if ($filename == '-' || empty($filename)) {
            $script = @\file_get_contents('php://stdin', 'r');
        } else {
            $script = @\file_get_contents($filename);
        }
        if (!$script) {
            throw new RuntimeException('Script file was not found');
        }
        return $script;
    }