load(); /* * set timezone */ date_default_timezone_set(config('app.timezone')); /* * create console */ $application = new Application(); /* * server commands */ $application->add(new StartServerCommand()); $application->add(new ReloadServerCommand()); $application->add(new StatusServerCommand()); $application->add(new StopServerCommand()); /* * build commands */ $application->add(new BuildControllerCommand()); $application->add(new BuildExceptionCommand()); $application->add(new BuildMiddlewareCommand()); $application->add(new BuildResourceCommand()); $application->add(new BuildTestCommand()); $application->add(new BuildJobCommand()); $application->add(new BuildTaskCommand()); $application->add(new BuildServiceCommand()); /* * tests commands */ $application->add(new TestsRunCommand()); /* * factory commands */ $application->add(new FactoryStartCommand()); /* * queue commands */ $application->add(new QueueStartCommand()); $application->add(new QueueStatusCommand()); $application->add(new QueueStopCommand()); /* * scheduler commands */ $application->add(new SchedulerStartCommand()); $application->add(new SchedulerStatusCommand()); $application->add(new SchedulerStopCommand()); /* * run console */ $application->run();