#!/usr/bin/env php run($argv)); } // Comandos propios del proyecto, despachados desde ROOT_CORE/Commands. $coreCommand = 'Commands\\' . ucfirst($command); if (!class_exists($coreCommand) && !file_exists(ROOT_CORE . '/Commands/' . ucfirst($command) . '.php')) { exit("Invalid command.\n"); } $cli = new $coreCommand(); if ($cli instanceof Interfaces\CommandInterface) { call_user_func_array([$cli, 'run'], array_slice($argv, 2)); } else { exit("Invalid command.\n"); }