src/CommandLoader.php
/**
     * Schedule all of the fcmd found in the given class.
     * 
     * @param string|array $class
     * @param Schedule     $schedule
     */
Schedule all of the fcmd found in the given class.

@param string|array $class
@param Schedule     $schedule
Schedule all of the fcmd found in the given class . @param string|array $class @param Schedule $schedule
function schedule($classes, Schedule $schedule)
    {
        if (is_string($classes)) {
            $classes = [$classes];
        }
        foreach ($classes as $class) {
            $this->foreachCommandOfClass($class, function ($signature, $description, $repeat, $class, $method) use ($schedule) {
                if ($repeat !== null) {
                    $command = new CommandWrapper($signature, $description, $class, $method);
                    $schedule->command($command->getName(), [])->cron($repeat); 
                }
            });
        }
    }
function schedule ( $ classes , Schedule $ schedule ) { if ( is_string ( $ classes ) ) { $ classes = [ $ classes ] ; } foreach ( $ classes as $ class ) { $ this -> foreachCommandOfClass ( $ class , function ( $ signature , $ description , $ repeat , $ class , $ method ) use ( $ schedule ) { if ( $ repeat !== null ) { $ command = new CommandWrapper ( $ signature , $ description , $ class , $ method ) ; $ schedule -> command ( $ command -> getName ( ) , [ ] ) -> cron ( $ repeat ) ; } } ) ; } }
Schedule all of the fcmd found in the given class.
Schedule all of the fcmd found in the given class .
// The command, at the moment, will always be called without any additional argument!