eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::getSchemaStatements PHP Метод

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

Returns the database schema as an array of SQL statements.
protected getSchemaStatements ( string $dbType ) : string[]
$dbType string Name of Database type (mysql, sqlite, pgsql, ..)
Результат string[]
    protected function getSchemaStatements($dbType)
    {
        $schemaPath = __DIR__ . "/../../../../data/{$dbType}/schema.sql";
        return array_filter(preg_split('(;\\s*$)m', file_get_contents($schemaPath)));
    }