for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DDiimmkkaass\Api;
use DDiimmkkaass\Api\Generator\ApiMakeCommand;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
$this->mergeConfigFrom(
__DIR__.'/config/config.php', 'lumen-api-generator'
);
$this->app->singleton('command.api.make', function ($app) {
return new ApiMakeCommand($app['files']);
});
$this->commands('command.api.make');
}
* Bootstrap the application events.
public function boot()
$routes = config('lumen-api-generator.routes_file');
if ($routes) {
require app_path($routes);