Christopher Vagnetoft
f4257b39e4
* Pipe improvements; better filter code, pipeline etc. * Moved commands in PDO plugin to dedicated namespace
17 lines
411 B
PHP
17 lines
411 B
PHP
<?php // "name":"Access databases through PDO", "author":"Noccy"
|
|
|
|
namespace SparkPlug\Com\Noccy\Pdo;
|
|
|
|
use SparkPlug;
|
|
|
|
class PdoPlugin extends SparkPlug {
|
|
public function load()
|
|
{
|
|
register_command(new Commands\PdoQueryCommand());
|
|
register_command(new Commands\PdoExecCommand());
|
|
}
|
|
}
|
|
|
|
register_plugin("com.noccy.pdo", new PdoPlugin);
|
|
register_resource_type("pdo", PdoResource::class);
|