/** * Format the message to show */ public function show() { $this->line(""); $this->line(Application::consoleVersion()); $this->line(Application::kernelVersion()); $this->line("created by Amine Abri (info@amineabri.com )"); }
/** * Require files of Console */ protected static function commands($routes) { foreach (self::fetch("console/commands") as $file) { Connector::need($file); } if ($routes) { foreach (self::fetch("bundles/" . Application::getCurrentModule() . "/console/commands") as $file_md) { Connector::need($file_md); } foreach (self::fetch(Application::$root . Config::get('panel.path') . "console/commands") as $file_pnlmd) { Connector::need($file_pnlmd); } } }
<?php use AR\Kernel\Foundation\Application; $rootPath = str_replace("public/index.php", "", Application::root()); return array('enable' => true, 'route' => 'backend', 'path' => 'vendor/ar-framework-labs/panel/bundles/panels/', "pathressources" => $rootPath . "vendor/ar-framework-labs/panel/bundles/panels/ressources/public", 'configured' => false, 'ajax' => array('new_seed' => 'new_seed', 'exec_migration' => 'exec_migration', 'rollback_migration' => 'rollback_migration', 'new_migration' => 'new_migration', 'new_controller' => 'new_controller', 'new_dir_lang' => 'new_dir_lang', 'new_file_lang' => 'new_file_lang', 'new_link' => 'new_link', 'new_model' => 'new_model', 'new_view' => 'new_view', 'exec_cos_migration' => 'exec_cos_migration', 'rollback_cos_migration' => 'rollback_cos_migration'));
<?php use AR\Kernel\Foundation\Application; return array('project' => 'ARFramework', 'owner' => 'Amine Abri', 'url' => Application::root(), 'base_url' => str_replace('public/index.php', '', Application::root()), 'title' => 'AR PHP Framework', 'timezone' => 'UTC', 'unrouted' => true, 'charset' => 'utf-8', 'anonymouse' => 'Guest');
/** * Return instance the Framework App Class */ public static function instance($path) { return Application::run("", $path, false, false); }