for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* NOTICE OF LICENSE
*
* Part of the Cortex Foundation Module.
* This source file is subject to The MIT License (MIT)
* that is bundled with this package in the LICENSE file.
* Package: Cortex Foundation Module
* License: The MIT License (MIT)
* Link: https://rinvex.com
*/
declare(strict_types=1);
namespace Cortex\Foundation\Overrides\Lord\Laroute;
use Lord\Laroute\Console\Commands\LarouteGeneratorCommand;
use Cortex\Foundation\Overrides\Lord\Laroute\Routes\Collection;
use Lord\Laroute\LarouteServiceProvider as BaseLarouteServiceProvider;
class LarouteServiceProvider extends BaseLarouteServiceProvider
{
/**
* Register the command.
* @return void
protected function registerCommand()
$this->app->singleton(
'command.laroute.generate',
function ($app) {
$config = $app['config'];
$routes = new Collection($app['router']->getRoutes(), $config->get('laroute.filter', 'all'), $config->get('laroute.action_namespace', ''));
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.
$generator = $app->make('Lord\Laroute\Generators\GeneratorInterface');
return new LarouteGeneratorCommand($config, $routes, $generator);
}
);
$this->commands('command.laroute.generate');
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.