Skip to content

Commit

Permalink
refactor namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Jan 30, 2017
1 parent 48473d8 commit ea92c89
Show file tree
Hide file tree
Showing 26 changed files with 83 additions and 78 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Fernando <[email protected]>
Copyright (c) 2017 Fernando <[email protected]>, Summer <[email protected]>.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 9 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
{
"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",
"authors": [
{
"name": "Fernando Brito",
"email": "[email protected]"
},
{
"name": "Summer",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.4.0"
"php": ">=5.4.0",
"laravel/framework": "5.3.*",
},
"require-dev": {
"laravel/laravel": "dev-master",
"phpunit/phpunit": "^5.4"
},
"autoload": {
"psr-4": {
"Laralib\\L5scaffold\\": "src/"
"Summerblue\\Generator\\": "src/"
}
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
### Step 1: Install Through Composer

```
composer require 'laralib/l5scaffold' --dev
composer require 'summerblue/generator' --dev
```

### Step 2: Add the Service Provider

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!
Expand Down
24 changes: 12 additions & 12 deletions src/Commands/ScaffoldMakeCommand.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?php

namespace Laralib\L5scaffold\Commands;
namespace Summerblue\Generator\Commands;

use Illuminate\Console\AppNamespaceDetectorTrait;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Input;
use Laralib\L5scaffold\Makes\MakeController;
use Laralib\L5scaffold\Makes\MakeLayout;
use Laralib\L5scaffold\Makes\MakeLocalization;
use Laralib\L5scaffold\Makes\MakeMigration;
use Laralib\L5scaffold\Makes\MakeModel;
use Laralib\L5scaffold\Makes\MakeRoute;
use Laralib\L5scaffold\Makes\MakerTrait;
use Laralib\L5scaffold\Makes\MakeSeed;
use Laralib\L5scaffold\Makes\MakeView;
use Laralib\L5scaffold\Makes\MakeFormRequest;
use Laralib\L5scaffold\Makes\MakePolicy;
use Summerblue\Generator\Makes\MakeController;
use Summerblue\Generator\Makes\MakeLayout;
use Summerblue\Generator\Makes\MakeLocalization;
use Summerblue\Generator\Makes\MakeMigration;
use Summerblue\Generator\Makes\MakeModel;
use Summerblue\Generator\Makes\MakeRoute;
use Summerblue\Generator\Makes\MakerTrait;
use Summerblue\Generator\Makes\MakeSeed;
use Summerblue\Generator\Makes\MakeView;
use Summerblue\Generator\Makes\MakeFormRequest;
use Summerblue\Generator\Makes\MakePolicy;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;

Expand Down
2 changes: 1 addition & 1 deletion src/GeneratorException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laralib\L5scaffold;
namespace Summerblue\Generator;

class GeneratorException extends \Exception {

Expand Down
4 changes: 2 additions & 2 deletions src/GeneratorsServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laralib\L5scaffold;
namespace Summerblue\Generator;

use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -35,7 +35,7 @@ public function register()
private function registerScaffoldGenerator()
{
$this->app->singleton('command.larascaf.scaffold', function ($app) {
return $app['Laralib\L5scaffold\Commands\ScaffoldMakeCommand'];
return $app['Summerblue\Generator\Commands\ScaffoldMakeCommand'];
});

$this->commands('command.larascaf.scaffold');
Expand Down
4 changes: 2 additions & 2 deletions src/Localizations/SchemaParser.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laralib\L5scaffold\Localizations;
namespace Summerblue\Generator\Localizations;

/**
* Class SchemaParser
* @package Laralib\L5scaffold\Migrations
* @package Summerblue\Generator\Migrations
* @author Ryan Gurnick <[email protected]>
*/
class SchemaParser
Expand Down
4 changes: 2 additions & 2 deletions src/Localizations/SyntaxBuilder.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laralib\L5scaffold\Localizations;
namespace Summerblue\Generator\Localizations;

/**
* Class SyntaxBuilder
* @package Laralib\L5scaffold\Migrations
* @package Summerblue\Generator\Migrations
* @author Ryan Gurnick <[email protected]>
*/
class SyntaxBuilder
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakeController.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Console\AppNamespaceDetectorTrait;
use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Validators\SchemaParser as ValidatorParser;
use Laralib\L5scaffold\Validators\SyntaxBuilder as ValidatorSyntax;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Validators\SchemaParser as ValidatorParser;
use Summerblue\Generator\Validators\SyntaxBuilder as ValidatorSyntax;


class MakeController
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakeFormRequest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Console\AppNamespaceDetectorTrait;
use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Validators\SchemaParser as ValidatorParser;
use Laralib\L5scaffold\Validators\SyntaxBuilder as ValidatorSyntax;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Validators\SchemaParser as ValidatorParser;
use Summerblue\Generator\Validators\SyntaxBuilder as ValidatorSyntax;

class MakeFormRequest
{
Expand Down
4 changes: 2 additions & 2 deletions src/Makes/MakeLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* Time: 11:49 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;

class MakeLayout
{
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakeLocalization.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Time: 10:34 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Localizations\SchemaParser as LocalizationsParser;
use Laralib\L5scaffold\Localizations\SyntaxBuilder as LocalizationsBuilder;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Localizations\SchemaParser as LocalizationsParser;
use Summerblue\Generator\Localizations\SyntaxBuilder as LocalizationsBuilder;

class MakeLocalization
{
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Time: 10:34 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Migrations\SchemaParser;
use Laralib\L5scaffold\Migrations\SyntaxBuilder;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Migrations\SchemaParser;
use Summerblue\Generator\Migrations\SyntaxBuilder;

class MakeMigration
{
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakeModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Time: 10:34 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Migrations\SchemaParser;
use Laralib\L5scaffold\Migrations\SyntaxBuilder;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Migrations\SchemaParser;
use Summerblue\Generator\Migrations\SyntaxBuilder;

class MakeModel
{
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakePolicy.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Console\AppNamespaceDetectorTrait;
use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Validators\SchemaParser as ValidatorParser;
use Laralib\L5scaffold\Validators\SyntaxBuilder as ValidatorSyntax;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Validators\SchemaParser as ValidatorParser;
use Summerblue\Generator\Validators\SyntaxBuilder as ValidatorSyntax;

class MakePolicy
{
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakeRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
* Time: 10:34 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Console\AppNamespaceDetectorTrait;
use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Migrations\SchemaParser;
use Laralib\L5scaffold\Migrations\SyntaxBuilder;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Migrations\SchemaParser;
use Summerblue\Generator\Migrations\SyntaxBuilder;

class MakeRoute
{
Expand Down
4 changes: 2 additions & 2 deletions src/Makes/MakeSeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* Time: 10:34 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;

class MakeSeed
{
Expand Down
8 changes: 4 additions & 4 deletions src/Makes/MakeView.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Time: 4:58 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Laralib\L5scaffold\Migrations\SchemaParser;
use Laralib\L5scaffold\Migrations\SyntaxBuilder;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Migrations\SchemaParser;
use Summerblue\Generator\Migrations\SyntaxBuilder;

class MakeView
{
Expand Down
4 changes: 2 additions & 2 deletions src/Makes/MakerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* Time: 5:00 PM
*/

namespace Laralib\L5scaffold\Makes;
namespace Summerblue\Generator\Makes;

use Illuminate\Filesystem\Filesystem;
use Laralib\L5scaffold\Commands\ScaffoldMakeCommand;
use Summerblue\Generator\Commands\ScaffoldMakeCommand;

trait MakerTrait
{
Expand Down
4 changes: 2 additions & 2 deletions src/Migrations/NameParser.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laralib\L5scaffold\Migrations;
namespace Summerblue\Generator\Migrations;

/**
* Class NameParser
* @package Laralib\L5scaffold\Migrations with modifications by Fernando
* @package Summerblue\Generator\Migrations with modifications by Fernando
* @author Jeffrey Way <[email protected]>
*/
class NameParser
Expand Down
4 changes: 2 additions & 2 deletions src/Migrations/SchemaParser.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laralib\L5scaffold\Migrations;
namespace Summerblue\Generator\Migrations;

/**
* Class SchemaParser with modifications by Fernando
* @package Laralib\L5scaffold\Migrations
* @package Summerblue\Generator\Migrations
* @author Jeffrey Way <[email protected]>
*/
class SchemaParser
Expand Down
6 changes: 3 additions & 3 deletions src/Migrations/SyntaxBuilder.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Laralib\L5scaffold\Migrations;
namespace Summerblue\Generator\Migrations;

use Laralib\L5scaffold\GeneratorException;
use Summerblue\Generator\GeneratorException;


/**
* Class SyntaxBuilder with modifications by Fernando
* @package Laralib\L5scaffold\Migrations
* @package Summerblue\Generator\Migrations
* @author Jeffrey Way <[email protected]>
*/
class SyntaxBuilder
Expand Down
4 changes: 2 additions & 2 deletions src/Validators/SchemaParser.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laralib\L5scaffold\Validators;
namespace Summerblue\Generator\Validators;

/**
* Class SchemaParser
* @package Laralib\L5scaffold\Migrations
* @package Summerblue\Generator\Migrations
* @author Ryan Gurnick <[email protected]>
*/
class SchemaParser
Expand Down
4 changes: 2 additions & 2 deletions src/Validators/SyntaxBuilder.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laralib\L5scaffold\Validators;
namespace Summerblue\Generator\Validators;

/**
* Class SyntaxBuilder
* @package Laralib\L5scaffold\Migrations
* @package Summerblue\Generator\Migrations
* @author Ryan Gurnick <[email protected]>
*/
class SyntaxBuilder
Expand Down
Loading

0 comments on commit ea92c89

Please sign in to comment.