InspectController: pimp commands action

This commit is contained in:
Thomas Gelf 2015-12-02 03:37:10 +01:00
parent 570f8d9440
commit 07cf2f53a8

View File

@ -53,7 +53,15 @@ class InspectController extends ActionController
public function commandsAction()
{
print_r($this->api()->getCheckCommandObjects());
$db = $this->db();
echo '<pre>';
foreach ($this->api()->setDb($db)->getCheckCommandObjects() as $object) {
if (! $object::exists($object->object_name, $db)) {
// var_dump($object->store());
echo $object;
}
}
echo '</pre>';
exit;
}