src/Way/Generators/GeneratorsServiceProvider.php
protected function registerResource()
    {
        $this->app['generate.resource'] = $this->app->share(function($app)
        {
            $generator = $this->app->make('Way\Generators\Generator');

            return new ResourceGeneratorCommand($generator);
        });

        $this->commands('generate.resource');
    }
protected function registerResource()
    {
        $this->app['generate.resource'] = $this->app->share(function($app)
        {
            $generator = $this->app->make('Way\Generators\Generator');

            return new ResourceGeneratorCommand($generator);
        });

        $this->commands('generate.resource');
    }
protected function registerResource ( ) { $ this -> app [ 'generate.resource' ] = $ this -> app -> share ( function ( $ app ) { $ generator = $ this -> app -> make ( 'Way\Generators\Generator' ) ; return new ResourceGeneratorCommand ( $ generator ) ; } ) ; $ this -> commands ( 'generate.resource' ) ; }
Register the resource generator
Register the resource generator