public static function run(Event $event)
    {
        $event->getIO()->write('<info>Now running setup tasks...</info>');
        $config = static::getConfig($event);
        $tasks  = static::getSetupTasks($event);
        foreach ($tasks as $task) {
            /** @var SetupTask $taskStep */
            $taskStep = new $task($config, $event);
            $event->getIO()->write(
                sprintf(
                    '<info>Task %1$s</info>',
                    $taskStep->getName()
                )
            );
            $taskStep->complete();
        }
        $event->getIO()->write('<info>Setup tasks complete, cleaning up...</info>');
    }
public static function run(Event $event)
    {
        $event->getIO()->write('<info>Now running setup tasks...</info>');
        $config = static::getConfig($event);
        $tasks  = static::getSetupTasks($event);
        foreach ($tasks as $task) {
            /** @var SetupTask $taskStep */
            $taskStep = new $task($config, $event);
            $event->getIO()->write(
                sprintf(
                    '<info>Task %1$s</info>',
                    $taskStep->getName()
                )
            );
            $taskStep->complete();
        }
        $event->getIO()->write('<info>Setup tasks complete, cleaning up...</info>');
    }
public static function run ( Event $ event ) { $ event -> getIO ( ) -> write ( '<info>Now running setup tasks...</info>' ) ; $ config = static :: getConfig ( $ event ) ; $ tasks = static :: getSetupTasks ( $ event ) ; foreach ( $ tasks as $ task ) { /** @var SetupTask $taskStep */ $ taskStep = new $ task ( $ config , $ event ) ; $ event -> getIO ( ) -> write ( sprintf ( '<info>Task %1$s</info>' , $ taskStep -> getName ( ) ) ) ; $ taskStep -> complete ( ) ; } $ event -> getIO ( ) -> write ( '<info>Setup tasks complete, cleaning up...</info>' ) ; }
Run the setup, one task at a time.

@since 0.1.0

@param Event $event The Composer event that is being handled.
Run the setup one task at a time .