From 7c4650114535c8f44f5d4ad16fd94e613f171795 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sun, 10 Mar 2013 10:28:10 +0100 Subject: [PATCH] Fix namespacing / package name --- composer.json | 4 ++-- readme.md | 6 +++--- .../{IdeHelper => LaravelIdeHelper}/GeneratorCommand.php | 6 +++--- .../IdeHelperServiceProvider.php | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) rename src/Barryvdh/{IdeHelper => LaravelIdeHelper}/GeneratorCommand.php (95%) rename src/Barryvdh/{IdeHelper => LaravelIdeHelper}/IdeHelperServiceProvider.php (89%) diff --git a/composer.json b/composer.json index 088769f..cc31fa3 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "barryvdh/ide-helper", + "name": "barryvdh/laravel-ide-helper", "description": "", "authors": [ { @@ -14,7 +14,7 @@ }, "autoload": { "psr-0": { - "Barryvdh\\IdeHelper": "src/" + "Barryvdh\\LaravelIdeHelper": "src/" } }, "minimum-stability": "dev" diff --git a/readme.md b/readme.md index 80a5251..bb49347 100644 --- a/readme.md +++ b/readme.md @@ -9,11 +9,11 @@ The file has been tested in PHPStorm 6. Require this package in your composer.json: - "barryvdh/ide-helper": "dev-master" + "barryvdh/laravel-ide-helper": "dev-master" And add the ServiceProvider to the providers array in app/config/app.php - 'Barryvdh\IdeHelper\IdeHelperServiceProvider', + 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', You can now re-generate the docs yourself (for future updates) in arisan @@ -21,7 +21,7 @@ You can now re-generate the docs yourself (for future updates) in arisan You can also publish the config-file to add extra facades (ie. for bundles). - php artisan config:publish barryvdh/ide-helper + php artisan config:publish barryvdh/laravel-ide-helper You can just add the Facade and the 'real' class, like the rest of the classes. diff --git a/src/Barryvdh/IdeHelper/GeneratorCommand.php b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php similarity index 95% rename from src/Barryvdh/IdeHelper/GeneratorCommand.php rename to src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php index e8a5455..f1377c7 100644 --- a/src/Barryvdh/IdeHelper/GeneratorCommand.php +++ b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php @@ -1,4 +1,4 @@ -argument('filename'); - $aliases = \Config::get('ide-helper::aliases'); + $aliases = \Config::get('laravel-ide-helper::aliases'); $content = $this->parseDocBlocks($aliases); $written = \File::put($filename, $content); @@ -51,7 +51,7 @@ class GeneratorCommand extends Command { protected function getArguments() { return array( - array('filename', InputArgument::OPTIONAL, 'The path to the helper file', \Config::get('ide-helper::filename')), + array('filename', InputArgument::OPTIONAL, 'The path to the helper file', \Config::get('laravel-ide-helper::filename')), ); } diff --git a/src/Barryvdh/IdeHelper/IdeHelperServiceProvider.php b/src/Barryvdh/LaravelIdeHelper/IdeHelperServiceProvider.php similarity index 89% rename from src/Barryvdh/IdeHelper/IdeHelperServiceProvider.php rename to src/Barryvdh/LaravelIdeHelper/IdeHelperServiceProvider.php index 864a596..d2a9fad 100644 --- a/src/Barryvdh/IdeHelper/IdeHelperServiceProvider.php +++ b/src/Barryvdh/LaravelIdeHelper/IdeHelperServiceProvider.php @@ -1,4 +1,4 @@ -package('barryvdh/ide-helper'); + $this->package('barryvdh/laravel-ide-helper'); } /**