mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Use PSR-4
This commit is contained in:
+2
-2
@@ -24,8 +24,8 @@
|
|||||||
"doctrine/dbal": "Load information from the database about models for phpdocs (~2.3)"
|
"doctrine/dbal": "Load information from the database about models for phpdocs (~2.3)"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-4": {
|
||||||
"Barryvdh\\LaravelIdeHelper": "src/"
|
"Barryvdh\\LaravelIdeHelper\\": "src"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
|
|||||||
Executable → Regular
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
* @link https://github.com/barryvdh/laravel-ide-helper
|
* @link https://github.com/barryvdh/laravel-ide-helper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Barryvdh\LaravelIdeHelper;
|
namespace Barryvdh\LaravelIdeHelper\Console;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Symfony\Component\Console\Input\InputOption;
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
use Symfony\Component\Console\Input\InputArgument;
|
use Symfony\Component\Console\Input\InputArgument;
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
* @link https://github.com/barryvdh/laravel-ide-helper
|
* @link https://github.com/barryvdh/laravel-ide-helper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Barryvdh\LaravelIdeHelper;
|
namespace Barryvdh\LaravelIdeHelper\Console;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
+7
-6
@@ -11,6 +11,8 @@
|
|||||||
namespace Barryvdh\LaravelIdeHelper;
|
namespace Barryvdh\LaravelIdeHelper;
|
||||||
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
use Barryvdh\LaravelIdeHelper\Console\GeneratorCommand;
|
||||||
|
Use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
|
||||||
|
|
||||||
class IdeHelperServiceProvider extends ServiceProvider {
|
class IdeHelperServiceProvider extends ServiceProvider {
|
||||||
|
|
||||||
@@ -28,7 +30,7 @@ class IdeHelperServiceProvider extends ServiceProvider {
|
|||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->package('barryvdh/laravel-ide-helper');
|
$this->app['config']->package('barryvdh/laravel-ide-helper', __DIR__ . '/config');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,18 +40,17 @@ class IdeHelperServiceProvider extends ServiceProvider {
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
$this->app['command.ide-helper.generate'] = $this->app->share(function()
|
||||||
$this->app['command.ide-helper.generate'] = $this->app->share(function($app)
|
|
||||||
{
|
{
|
||||||
return new GeneratorCommand;
|
return new GeneratorCommand;
|
||||||
});
|
});
|
||||||
$this->commands('command.ide-helper.generate');
|
|
||||||
|
|
||||||
$this->app['command.ide-helper.models'] = $this->app->share(function($app)
|
$this->app['command.ide-helper.models'] = $this->app->share(function()
|
||||||
{
|
{
|
||||||
return new ModelsCommand();
|
return new ModelsCommand();
|
||||||
});
|
});
|
||||||
$this->commands('command.ide-helper.models');
|
|
||||||
|
$this->commands('command.ide-helper.generate', 'command.ide-helper.models');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reference in New Issue
Block a user