public static function onAtomikStart()
    {
        $paths = (array) self::$config['scripts_dir'];
        foreach (Atomik::getLoadedPlugins(true) as $plugin => $path) {
            $paths[] = "$path/scripts";
        }

        foreach (array_filter(array_map('realpath', $paths)) as $path) {
            self::$console->addCommandsFromDir($path, '', true);
        }

        self::$console->run();
        exit();
    }
public static function onAtomikStart()
    {
        $paths = (array) self::$config['scripts_dir'];
        foreach (Atomik::getLoadedPlugins(true) as $plugin => $path) {
            $paths[] = "$path/scripts";
        }

        foreach (array_filter(array_map('realpath', $paths)) as $path) {
            self::$console->addCommandsFromDir($path, '', true);
        }

        self::$console->run();
        exit();
    }
public static function onAtomikStart ( ) { $ paths = ( array ) self :: $ config [ 'scripts_dir' ] ; foreach ( Atomik :: getLoadedPlugins ( true ) as $ plugin => $ path ) { $ paths [ ] = "$path/scripts" ; } foreach ( array_filter ( array_map ( 'realpath' , $ paths ) ) as $ path ) { self :: $ console -> addCommandsFromDir ( $ path , '' , true ) ; } self :: $ console -> run ( ) ; exit ( ) ; }
Display the console and execute callbacks associated
to the command
Display the console and execute callbacks associated to the command