FEATURE: init module environment
Initialized environment for creating modules.
This commit is contained in:
@@ -23,6 +23,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
// register PingPong module extension
|
||||||
$this->app->register('Pingpong\Modules\ModulesServiceProvider');
|
$this->app->register('Pingpong\Modules\ModulesServiceProvider');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Regular → Executable
+57
-52
@@ -1,55 +1,60 @@
|
|||||||
{
|
{
|
||||||
"name": "laravel/laravel",
|
"name": "laravel/laravel",
|
||||||
"description": "The Laravel Framework.",
|
"description": "The Laravel Framework.",
|
||||||
"keywords": ["framework", "laravel"],
|
"keywords": [
|
||||||
"license": "MIT",
|
"framework",
|
||||||
"type": "project",
|
"laravel"
|
||||||
"require": {
|
],
|
||||||
"php": ">=5.5.9",
|
"license": "MIT",
|
||||||
"laravel/framework": "5.2.*",
|
"type": "project",
|
||||||
"phpmailer/phpmailer": "^5.2",
|
"require": {
|
||||||
"pingpong/modules": "~2.0"
|
"php": ">=5.5.9",
|
||||||
},
|
"laravel/framework": "5.2.*",
|
||||||
"require-dev": {
|
"phpmailer/phpmailer": "^5.2",
|
||||||
"fzaninotto/faker": "~1.4",
|
"pingpong/modules": "~2.0",
|
||||||
"mockery/mockery": "0.9.*",
|
"league/flysystem": "^1.0"
|
||||||
"phpunit/phpunit": "~4.0",
|
},
|
||||||
"symfony/css-selector": "2.8.*|3.0.*",
|
"require-dev": {
|
||||||
"symfony/dom-crawler": "2.8.*|3.0.*",
|
"fzaninotto/faker": "~1.4",
|
||||||
"ignasbernotas/laravel-model-generator": "^1.0"
|
"mockery/mockery": "0.9.*",
|
||||||
},
|
"phpunit/phpunit": "~4.0",
|
||||||
"autoload": {
|
"symfony/css-selector": "2.8.*|3.0.*",
|
||||||
"classmap": [
|
"symfony/dom-crawler": "2.8.*|3.0.*",
|
||||||
"database"
|
"ignasbernotas/laravel-model-generator": "^1.0"
|
||||||
],
|
},
|
||||||
"psr-4": {
|
"autoload": {
|
||||||
"App\\": "app/"
|
"classmap": [
|
||||||
}
|
"database"
|
||||||
},
|
],
|
||||||
"autoload-dev": {
|
"psr-4": {
|
||||||
"classmap": [
|
"App\\": "app/",
|
||||||
"tests/TestCase.php"
|
"Modules\\": "modules/"
|
||||||
]
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"post-root-package-install": [
|
|
||||||
"php -r \"copy('.env.example', '.env');\""
|
|
||||||
],
|
|
||||||
"post-create-project-cmd": [
|
|
||||||
"php artisan key:generate"
|
|
||||||
],
|
|
||||||
"post-install-cmd": [
|
|
||||||
"php artisan clear-compiled",
|
|
||||||
"php artisan optimize"
|
|
||||||
],
|
|
||||||
"pre-update-cmd": [
|
|
||||||
"php artisan clear-compiled"
|
|
||||||
],
|
|
||||||
"post-update-cmd": [
|
|
||||||
"php artisan optimize"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"preferred-install": "dist"
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"classmap": [
|
||||||
|
"tests/TestCase.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"post-root-package-install": [
|
||||||
|
"php -r \"copy('.env.example', '.env');\""
|
||||||
|
],
|
||||||
|
"post-create-project-cmd": [
|
||||||
|
"php artisan key:generate"
|
||||||
|
],
|
||||||
|
"post-install-cmd": [
|
||||||
|
"php artisan clear-compiled",
|
||||||
|
"php artisan optimize"
|
||||||
|
],
|
||||||
|
"pre-update-cmd": [
|
||||||
|
"php artisan clear-compiled"
|
||||||
|
],
|
||||||
|
"post-update-cmd": [
|
||||||
|
"php artisan optimize"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"preferred-install": "dist"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ return [
|
|||||||
Illuminate\Translation\TranslationServiceProvider::class,
|
Illuminate\Translation\TranslationServiceProvider::class,
|
||||||
Illuminate\Validation\ValidationServiceProvider::class,
|
Illuminate\Validation\ValidationServiceProvider::class,
|
||||||
Illuminate\View\ViewServiceProvider::class,
|
Illuminate\View\ViewServiceProvider::class,
|
||||||
|
Pingpong\Modules\ModulesServiceProvider::class,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Application Service Providers...
|
* Application Service Providers...
|
||||||
|
|||||||
Reference in New Issue
Block a user