php-spark/plugins/com.noccy.pdo/sparkplug.php
Christopher Vagnetoft f4257b39e4 Pipe improvements, misc cleanup
* Pipe improvements; better filter code, pipeline etc.
* Moved commands in PDO plugin to dedicated namespace
2021-12-23 15:31:26 +01:00

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);