From ea92c89880c2c6cd8200ccf767ddc9888c36f73b Mon Sep 17 00:00:00 2001 From: Summer Date: Tue, 31 Jan 2017 07:51:17 +0800 Subject: [PATCH] refactor namespace --- LICENSE | 2 +- composer.json | 13 +++++++++---- readme.md | 4 ++-- src/Commands/ScaffoldMakeCommand.php | 24 ++++++++++++------------ src/GeneratorException.php | 2 +- src/GeneratorsServiceProvider.php | 4 ++-- src/Localizations/SchemaParser.php | 4 ++-- src/Localizations/SyntaxBuilder.php | 4 ++-- src/Makes/MakeController.php | 8 ++++---- src/Makes/MakeFormRequest.php | 8 ++++---- src/Makes/MakeLayout.php | 4 ++-- src/Makes/MakeLocalization.php | 8 ++++---- src/Makes/MakeMigration.php | 8 ++++---- src/Makes/MakeModel.php | 8 ++++---- src/Makes/MakePolicy.php | 8 ++++---- src/Makes/MakeRoute.php | 8 ++++---- src/Makes/MakeSeed.php | 4 ++-- src/Makes/MakeView.php | 8 ++++---- src/Makes/MakerTrait.php | 4 ++-- src/Migrations/NameParser.php | 4 ++-- src/Migrations/SchemaParser.php | 4 ++-- src/Migrations/SyntaxBuilder.php | 6 +++--- src/Validators/SchemaParser.php | 4 ++-- src/Validators/SyntaxBuilder.php | 4 ++-- tests/CommandTest.php | 4 ++-- tests/StartTest.php | 2 +- 26 files changed, 83 insertions(+), 78 deletions(-) diff --git a/LICENSE b/LICENSE index 405abe9..5647ff7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014 Fernando +Copyright (c) 2017 Fernando , Summer . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/composer.json b/composer.json index 3172857..6952610 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "laralib/l5scaffold", - "description": "Extend Laravel 5's generators scaffold.", + "name": "summerblue/generator", + "description": "Extend Laravel 5.3's generators scaffold.", "keywords": ["laravel", "generators", "scaffold" , "laravel5"], "license": "MIT", "minimum-stability": "dev", @@ -8,10 +8,15 @@ { "name": "Fernando Brito", "email": "fernandobritofl@gmail.com" + }, + { + "name": "Summer", + "email": "summer@yousails.com" } ], "require": { - "php": ">=5.4.0" + "php": ">=5.4.0", + "laravel/framework": "5.3.*", }, "require-dev": { "laravel/laravel": "dev-master", @@ -19,7 +24,7 @@ }, "autoload": { "psr-4": { - "Laralib\\L5scaffold\\": "src/" + "Summerblue\\Generator\\": "src/" } } } diff --git a/readme.md b/readme.md index 05ac3e6..9f1b499 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@ ### Step 1: Install Through Composer ``` -composer require 'laralib/l5scaffold' --dev +composer require 'summerblue/generator' --dev ``` ### Step 2: Add the Service Provider @@ -15,7 +15,7 @@ composer require 'laralib/l5scaffold' --dev Open `config/app.php` and, to your **providers** array at the bottom, add: ``` -Laralib\L5scaffold\GeneratorsServiceProvider::class +Summerblue\Generator\GeneratorsServiceProvider::class ``` ### Step 3: Run Artisan! diff --git a/src/Commands/ScaffoldMakeCommand.php b/src/Commands/ScaffoldMakeCommand.php index 3e04068..a0b64ea 100755 --- a/src/Commands/ScaffoldMakeCommand.php +++ b/src/Commands/ScaffoldMakeCommand.php @@ -1,22 +1,22 @@ app->singleton('command.larascaf.scaffold', function ($app) { - return $app['Laralib\L5scaffold\Commands\ScaffoldMakeCommand']; + return $app['Summerblue\Generator\Commands\ScaffoldMakeCommand']; }); $this->commands('command.larascaf.scaffold'); diff --git a/src/Localizations/SchemaParser.php b/src/Localizations/SchemaParser.php index 8f17a22..c46a113 100644 --- a/src/Localizations/SchemaParser.php +++ b/src/Localizations/SchemaParser.php @@ -1,10 +1,10 @@ */ class SchemaParser diff --git a/src/Localizations/SyntaxBuilder.php b/src/Localizations/SyntaxBuilder.php index 74e486b..2cfc624 100644 --- a/src/Localizations/SyntaxBuilder.php +++ b/src/Localizations/SyntaxBuilder.php @@ -1,10 +1,10 @@ */ class SyntaxBuilder diff --git a/src/Makes/MakeController.php b/src/Makes/MakeController.php index fbd499f..020ef3f 100755 --- a/src/Makes/MakeController.php +++ b/src/Makes/MakeController.php @@ -1,11 +1,11 @@ */ class NameParser diff --git a/src/Migrations/SchemaParser.php b/src/Migrations/SchemaParser.php index 3d6905f..33e532c 100644 --- a/src/Migrations/SchemaParser.php +++ b/src/Migrations/SchemaParser.php @@ -1,10 +1,10 @@ */ class SchemaParser diff --git a/src/Migrations/SyntaxBuilder.php b/src/Migrations/SyntaxBuilder.php index f1071ec..1d2282a 100644 --- a/src/Migrations/SyntaxBuilder.php +++ b/src/Migrations/SyntaxBuilder.php @@ -1,13 +1,13 @@ */ class SyntaxBuilder diff --git a/src/Validators/SchemaParser.php b/src/Validators/SchemaParser.php index 6360513..e4aee06 100644 --- a/src/Validators/SchemaParser.php +++ b/src/Validators/SchemaParser.php @@ -1,10 +1,10 @@ */ class SchemaParser diff --git a/src/Validators/SyntaxBuilder.php b/src/Validators/SyntaxBuilder.php index 6daec4c..0487d0e 100644 --- a/src/Validators/SyntaxBuilder.php +++ b/src/Validators/SyntaxBuilder.php @@ -1,10 +1,10 @@ */ class SyntaxBuilder diff --git a/tests/CommandTest.php b/tests/CommandTest.php index b7ec46d..f926487 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -1,6 +1,6 @@ app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php'; - $this->app->register('Laralib\L5scaffold\GeneratorsServiceProvider'); + $this->app->register('Summerblue\Generator\GeneratorsServiceProvider'); $this->app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap(); } diff --git a/tests/StartTest.php b/tests/StartTest.php index 572f296..3592a5c 100644 --- a/tests/StartTest.php +++ b/tests/StartTest.php @@ -1,6 +1,6 @@