@@ -8,50 +8,50 @@ discard block |
||
8 | 8 | class Kernel extends ConsoleKernel |
9 | 9 | { |
10 | 10 | |
11 | - /** |
|
12 | - * The bootstrap classes for the application. |
|
13 | - * |
|
14 | - * @var array |
|
15 | - */ |
|
16 | - protected $bootstrappers = [ |
|
17 | - 'Illuminate\Foundation\Bootstrap\DetectEnvironment', |
|
18 | - 'App\Bootstrappers\LoadConfiguration', |
|
19 | - 'Illuminate\Foundation\Bootstrap\ConfigureLogging', |
|
20 | - 'Illuminate\Foundation\Bootstrap\HandleExceptions', |
|
21 | - 'Illuminate\Foundation\Bootstrap\RegisterFacades', |
|
22 | - 'Illuminate\Foundation\Bootstrap\SetRequestForConsole', |
|
23 | - 'Illuminate\Foundation\Bootstrap\RegisterProviders', |
|
24 | - 'Illuminate\Foundation\Bootstrap\BootProviders', |
|
25 | - ]; |
|
26 | - |
|
27 | - /** |
|
28 | - * The Artisan commands provided by your application. |
|
29 | - * |
|
30 | - * @var array |
|
31 | - */ |
|
32 | - protected $commands = [ |
|
33 | - \App\Console\Commands\Inspire::class, |
|
11 | + /** |
|
12 | + * The bootstrap classes for the application. |
|
13 | + * |
|
14 | + * @var array |
|
15 | + */ |
|
16 | + protected $bootstrappers = [ |
|
17 | + 'Illuminate\Foundation\Bootstrap\DetectEnvironment', |
|
18 | + 'App\Bootstrappers\LoadConfiguration', |
|
19 | + 'Illuminate\Foundation\Bootstrap\ConfigureLogging', |
|
20 | + 'Illuminate\Foundation\Bootstrap\HandleExceptions', |
|
21 | + 'Illuminate\Foundation\Bootstrap\RegisterFacades', |
|
22 | + 'Illuminate\Foundation\Bootstrap\SetRequestForConsole', |
|
23 | + 'Illuminate\Foundation\Bootstrap\RegisterProviders', |
|
24 | + 'Illuminate\Foundation\Bootstrap\BootProviders', |
|
25 | + ]; |
|
26 | + |
|
27 | + /** |
|
28 | + * The Artisan commands provided by your application. |
|
29 | + * |
|
30 | + * @var array |
|
31 | + */ |
|
32 | + protected $commands = [ |
|
33 | + \App\Console\Commands\Inspire::class, |
|
34 | 34 | \App\Console\Commands\XeInstall::class, |
35 | - \App\Console\Commands\Trash::class, |
|
36 | - \App\Console\Commands\Schema::class, |
|
37 | - \App\Console\Commands\PutTranslation::class, |
|
38 | - \App\Console\Commands\XeCacheClear::class, |
|
39 | - \App\Console\Commands\StorageOptimize::class, |
|
40 | - \App\Console\Commands\Site::class, |
|
41 | - \App\Console\Commands\PluginMakeCommand::class, |
|
42 | - \App\Console\Commands\PluginInstallCommand::class, |
|
43 | - ]; |
|
44 | - |
|
45 | - /** |
|
46 | - * Define the application's command schedule. |
|
47 | - * |
|
48 | - * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
49 | - * @return void |
|
50 | - */ |
|
51 | - protected function schedule(Schedule $schedule) |
|
52 | - { |
|
53 | - $schedule->command('inspire')->hourly(); |
|
54 | - } |
|
35 | + \App\Console\Commands\Trash::class, |
|
36 | + \App\Console\Commands\Schema::class, |
|
37 | + \App\Console\Commands\PutTranslation::class, |
|
38 | + \App\Console\Commands\XeCacheClear::class, |
|
39 | + \App\Console\Commands\StorageOptimize::class, |
|
40 | + \App\Console\Commands\Site::class, |
|
41 | + \App\Console\Commands\PluginMakeCommand::class, |
|
42 | + \App\Console\Commands\PluginInstallCommand::class, |
|
43 | + ]; |
|
44 | + |
|
45 | + /** |
|
46 | + * Define the application's command schedule. |
|
47 | + * |
|
48 | + * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
49 | + * @return void |
|
50 | + */ |
|
51 | + protected function schedule(Schedule $schedule) |
|
52 | + { |
|
53 | + $schedule->command('inspire')->hourly(); |
|
54 | + } |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Bootstrap the application for artisan commands. |
@@ -83,18 +83,18 @@ discard block |
||
83 | 83 | * @return void |
84 | 84 | */ |
85 | 85 | protected function resetForFramework() |
86 | - { |
|
87 | - $this->resetProviders(); |
|
88 | - $this->setCommandBeforeInstall(); |
|
89 | - } |
|
86 | + { |
|
87 | + $this->resetProviders(); |
|
88 | + $this->setCommandBeforeInstall(); |
|
89 | + } |
|
90 | 90 | |
91 | 91 | /** |
92 | 92 | * Define for providers of framework. |
93 | 93 | * |
94 | 94 | * @return void |
95 | 95 | */ |
96 | - protected function resetProviders() |
|
97 | - { |
|
96 | + protected function resetProviders() |
|
97 | + { |
|
98 | 98 | $this->app['events']->listen('bootstrapped: App\Bootstrappers\LoadConfiguration', function ($app) { |
99 | 99 | $config = $app['config']; |
100 | 100 | |
@@ -105,20 +105,20 @@ discard block |
||
105 | 105 | |
106 | 106 | $config->set('app.providers', $providers); |
107 | 107 | }); |
108 | - } |
|
108 | + } |
|
109 | 109 | |
110 | 110 | /** |
111 | 111 | * Define commands for previously installation |
112 | 112 | * |
113 | 113 | * @return void |
114 | 114 | */ |
115 | - protected function setCommandBeforeInstall() |
|
116 | - { |
|
117 | - $this->commands = array_intersect($this->commands, [ |
|
115 | + protected function setCommandBeforeInstall() |
|
116 | + { |
|
117 | + $this->commands = array_intersect($this->commands, [ |
|
118 | 118 | \App\Console\Commands\Inspire::class, |
119 | 119 | \App\Console\Commands\XeInstall::class |
120 | 120 | ]); |
121 | - } |
|
121 | + } |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * Define commands for after installation |
@@ -55,8 +55,8 @@ |
||
55 | 55 | $this->loadDefault(); |
56 | 56 | |
57 | 57 | app('xe.frontend')->js([ |
58 | - 'assets/vendor/swiper2/idangerous.swiper.js', |
|
59 | - 'assets/core/plugin/js/plugin.js' |
|
58 | + 'assets/vendor/swiper2/idangerous.swiper.js', |
|
59 | + 'assets/core/plugin/js/plugin.js' |
|
60 | 60 | ])->appendTo('head')->load(); |
61 | 61 | app('xe.frontend')->css('assets/vendor/swiper2/idangerous.swiper.css') |
62 | 62 | ->before('assets/core/settings/css/admin.css')->load(); |
@@ -114,11 +114,11 @@ |
||
114 | 114 | public function installed() |
115 | 115 | { |
116 | 116 | \DB::table('config')->insert([ |
117 | - ['name' => 'user', 'vars' => '[]'], |
|
118 | - ['name' => 'user.common', 'vars' => '{"secureLevel":"low","useCaptcha":false,"webmasterName":"webmaster","webmasterEmail":"[email protected]","agreement":"","privacy":""}'], |
|
119 | - ['name' => 'user.join', 'vars' => '{"joinable":true,"useEmailCertify":false,"useCaptcha":false}'], |
|
120 | - ['name' => 'user.usermenu', 'vars' => '{"activate":[]}'], |
|
121 | - ]); |
|
117 | + ['name' => 'user', 'vars' => '[]'], |
|
118 | + ['name' => 'user.common', 'vars' => '{"secureLevel":"low","useCaptcha":false,"webmasterName":"webmaster","webmasterEmail":"[email protected]","agreement":"","privacy":""}'], |
|
119 | + ['name' => 'user.join', 'vars' => '{"joinable":true,"useEmailCertify":false,"useCaptcha":false}'], |
|
120 | + ['name' => 'user.usermenu', 'vars' => '{"activate":[]}'], |
|
121 | + ]); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | public function update($currentVersion) |
@@ -824,7 +824,7 @@ |
||
824 | 824 | |
825 | 825 | XeDB::commit(); |
826 | 826 | |
827 | - return Redirect::back()->with('alert', ['type' => 'success', 'message' => 'success']); |
|
827 | + return Redirect::back()->with('alert', ['type' => 'success', 'message' => 'success']); |
|
828 | 828 | } |
829 | 829 | |
830 | 830 | /** |