php-spark/plugins/com.noccy.pdo/sparkplug.php

18 lines
471 B
PHP
Raw Normal View History

2021-12-08 23:58:28 +00:00
<?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_command(new Commands\PdoInspectCommand());
2021-12-08 23:58:28 +00:00
}
}
register_plugin("com.noccy.pdo", new PdoPlugin);
register_resource_type("pdo", PdoResource::class);