Cleanup Installer module scaffolding
This commit is contained in:
2
.idea/inspectionProfiles/Project_Default.xml
generated
2
.idea/inspectionProfiles/Project_Default.xml
generated
@@ -30,7 +30,7 @@
|
|||||||
<inspection_tool class="PhpExpressionResultUnusedInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
<inspection_tool class="PhpExpressionResultUnusedInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||||
<inspection_tool class="PhpIncludeInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
<inspection_tool class="PhpIncludeInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||||
<inspection_tool class="PhpSignatureMismatchDuringInheritanceInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
<inspection_tool class="PhpSignatureMismatchDuringInheritanceInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||||
<inspection_tool class="SecurityAdvisoriesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
<inspection_tool class="SecurityAdvisoriesInspection" enabled="false" level="WARNING" enabled_by_default="false">
|
||||||
<option name="optionConfiguration">
|
<option name="optionConfiguration">
|
||||||
<list>
|
<list>
|
||||||
<option value="behat/behat" />
|
<option value="behat/behat" />
|
||||||
|
|||||||
@@ -76,6 +76,11 @@
|
|||||||
"classmap": [
|
"classmap": [
|
||||||
"tests/TestCase.php"
|
"tests/TestCase.php"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"installer-paths": {
|
||||||
|
"modules/{$name}/": ["type:laravel-library"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"post-root-package-install": [
|
"post-root-package-install": [
|
||||||
|
|||||||
3
modules/Installer/Http/Routes/install.php
Normal file
3
modules/Installer/Http/Routes/install.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
Route::get('/', 'InstallerController@index');
|
||||||
3
modules/Installer/Http/Routes/update.php
Normal file
3
modules/Installer/Http/Routes/update.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
Route::get('/update', 'InstallerController@index');
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
Route::group(['middleware' => []], function() {
|
|
||||||
|
|
||||||
Route::get('/', 'InstallerController@index');
|
|
||||||
|
|
||||||
});
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Installer\Providers;
|
|
||||||
|
|
||||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
||||||
|
|
||||||
class EventServiceProvider extends ServiceProvider
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The event listener mappings for the application.
|
|
||||||
*/
|
|
||||||
protected $listen = [
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register any events for your application.
|
|
||||||
*/
|
|
||||||
public function boot()
|
|
||||||
{
|
|
||||||
parent::boot();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -24,28 +24,10 @@ class InstallerServiceProvider extends ServiceProvider
|
|||||||
$this->registerConfig();
|
$this->registerConfig();
|
||||||
$this->registerViews();
|
$this->registerViews();
|
||||||
|
|
||||||
$this->registerLinks();
|
|
||||||
|
|
||||||
$this->registerFactories();
|
$this->registerFactories();
|
||||||
$this->loadMigrationsFrom(__DIR__ . '/../Database/migrations');
|
$this->loadMigrationsFrom(__DIR__ . '/../Database/migrations');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Register the service provider.
|
|
||||||
*/
|
|
||||||
public function register()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add module links here
|
|
||||||
*/
|
|
||||||
public function registerLinks()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the routes
|
* Register the routes
|
||||||
*/
|
*/
|
||||||
@@ -53,12 +35,20 @@ class InstallerServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
Route::group([
|
Route::group([
|
||||||
'as' => 'installer.',
|
'as' => 'installer.',
|
||||||
'prefix' => 'installer',
|
'prefix' => 'install',
|
||||||
// If you want a RESTful module, change this to 'api'
|
|
||||||
'middleware' => ['web'],
|
'middleware' => ['web'],
|
||||||
'namespace' => 'Modules\Installer\Http\Controllers'
|
'namespace' => 'Modules\Installer\Http\Controllers'
|
||||||
], function() {
|
], function() {
|
||||||
$this->loadRoutesFrom(__DIR__ . '/../Http/routes.php');
|
$this->loadRoutesFrom(__DIR__ . '/../Http/Routes/install.php');
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::group([
|
||||||
|
'as' => 'installer.',
|
||||||
|
'prefix' => 'install',
|
||||||
|
'middleware' => ['web'],
|
||||||
|
'namespace' => 'Modules\Installer\Http\Controllers'
|
||||||
|
], function () {
|
||||||
|
$this->loadRoutesFrom(__DIR__ . '/../Http/Routes/update.php');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,20 @@
|
|||||||
{
|
{
|
||||||
"name": "/installer",
|
"name": "phpvms/installer",
|
||||||
"description": "",
|
"type": "laravel-library",
|
||||||
|
"description": "The installer module for phpVMS",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "Nabeel Shahzad",
|
||||||
"email": ""
|
"email": ""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"require": {
|
||||||
|
"composer/installers": "~1.0"
|
||||||
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"laravel": {
|
"laravel": {
|
||||||
"providers": [
|
"providers": [
|
||||||
"Modules\\Installer\\Providers\\InstallerServiceProvider",
|
"Modules\\Installer\\Providers\\InstallerServiceProvider"
|
||||||
"Modules\\Installer\\Providers\\EventServiceProvider"
|
|
||||||
],
|
],
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,7 @@
|
|||||||
"active": 1,
|
"active": 1,
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"providers": [
|
"providers": [
|
||||||
"Modules\\Installer\\Providers\\InstallerServiceProvider",
|
"Modules\\Installer\\Providers\\InstallerServiceProvider"
|
||||||
"Modules\\Installer\\Providers\\EventServiceProvider"
|
|
||||||
],
|
],
|
||||||
"aliases": {},
|
"aliases": {},
|
||||||
"files": [],
|
"files": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user