for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ElementsFramework\DynamicRouting;
use Illuminate\Support\ServiceProvider;
class DynamicRoutingServiceProvider extends ServiceProvider
{
/**
* Bootstraps the package.
*
* @return void
*/
public function boot()
// Migrations
$this->loadMigrationsFrom(__DIR__ . '/Migration');
// Configuration publishing
$this->publishes([
__DIR__.'/Configuration/dynamic-routing.php' => config_path('dynamic-routing.php'),
]);
$this->mergeConfigFrom(
__DIR__.'/Configuration/dynamic-routing.php', 'dynamic-routing'
);
}
* Register the application services.
public function register()
// Commands
$this->commands([
Console\CompileRoutesCommand::class,
Console\PublishProvidedRoutesCommand::class,
Console\CleanupProvidedRoutesCommand::class,
Console\SyncProvidedRoutesCommand::class,
// Services
$this->app->bind('ElementsFramework\DynamicRouting\Service\Compiler\RouteDeclarationCompiler', function($app) {
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new Service\Compiler\RouteDeclarationCompiler();
});
$this->app->bind('ElementsFramework\DynamicRouting\Service\Publishing\RoutePublisher', function($app) {
return new Service\Publishing\RoutePublisher();
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.