@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | public function register() |
59 | 59 | { |
60 | - $this->app->bind('xe.captcha', function ($app) { |
|
60 | + $this->app->bind('xe.captcha', function($app) { |
|
61 | 61 | $proxyClass = $app['xe.interception']->proxy(CaptchaManager::class, 'Captcha'); |
62 | 62 | $captchaManager = new $proxyClass($app); |
63 | 63 | return $captchaManager; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function register() |
56 | 56 | { |
57 | - $this->app->bind('xe.category', function ($app) { |
|
57 | + $this->app->bind('xe.category', function($app) { |
|
58 | 58 | $proxyClass = $app['xe.interception']->proxy(CategoryHandler::class, 'Category'); |
59 | 59 | $categoryHandler = new $proxyClass( |
60 | 60 | new CategoryRepository($app['xe.db']->connection()), |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function register() |
58 | 58 | { |
59 | - $this->app->bind('xe.config', function ($app) { |
|
59 | + $this->app->bind('xe.config', function($app) { |
|
60 | 60 | $repo = new DatabaseRepository($app['xe.db']->connection()); |
61 | 61 | |
62 | 62 | if (env('APP_DEBUG') != true) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | public function register() |
57 | 57 | { |
58 | - $this->app->singleton('xe.counter', function ($app) { |
|
58 | + $this->app->singleton('xe.counter', function($app) { |
|
59 | 59 | $connection = $app['xe.db']->connection(); |
60 | 60 | |
61 | 61 | $sessionCounter = new SessionCounter(app('session.store')); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function register() |
70 | 70 | { |
71 | - $this->app->singleton('xe.dynamicField', function ($app) { |
|
71 | + $this->app->singleton('xe.dynamicField', function($app) { |
|
72 | 72 | |
73 | 73 | /** @var \Xpressengine\Database\VirtualConnectionInterface $connection */ |
74 | 74 | $connection = $app['xe.db']->connection(); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ); |
81 | 81 | }); |
82 | 82 | |
83 | - $this->app->singleton('xe.dynamicField.revision', function ($app) { |
|
83 | + $this->app->singleton('xe.dynamicField.revision', function($app) { |
|
84 | 84 | return new RevisionManager($app['xe.dynamicField']); |
85 | 85 | }); |
86 | 86 | } |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Xpressengine\DynamicField\ColumnEntity; |
6 | 6 | use Xpressengine\DynamicField\ColumnDataType; |
7 | 7 | use Xpressengine\Config\ConfigEntity; |
8 | -use XeRegister; |
|
9 | 8 | use Xpressengine\DynamicField\DynamicFieldHandler; |
10 | 9 | use Xpressengine\FieldSkins\Number\DefaultSkin; |
11 | 10 | use View; |
@@ -7,27 +7,27 @@ |
||
7 | 7 | |
8 | 8 | class EventServiceProvider extends ServiceProvider |
9 | 9 | { |
10 | - /** |
|
11 | - * The event listener mappings for the application. |
|
12 | - * |
|
13 | - * @var array |
|
14 | - */ |
|
15 | - protected $listen = [ |
|
16 | - 'App\Events\SomeEvent' => [ |
|
17 | - 'App\Listeners\EventListener', |
|
18 | - ] |
|
19 | - ]; |
|
10 | + /** |
|
11 | + * The event listener mappings for the application. |
|
12 | + * |
|
13 | + * @var array |
|
14 | + */ |
|
15 | + protected $listen = [ |
|
16 | + 'App\Events\SomeEvent' => [ |
|
17 | + 'App\Listeners\EventListener', |
|
18 | + ] |
|
19 | + ]; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Register any other events for your application. |
|
23 | - * |
|
24 | - * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
25 | - * @return void |
|
26 | - */ |
|
27 | - public function boot(DispatcherContract $events) |
|
28 | - { |
|
29 | - parent::boot($events); |
|
21 | + /** |
|
22 | + * Register any other events for your application. |
|
23 | + * |
|
24 | + * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
25 | + * @return void |
|
26 | + */ |
|
27 | + public function boot(DispatcherContract $events) |
|
28 | + { |
|
29 | + parent::boot($events); |
|
30 | 30 | |
31 | - // |
|
32 | - } |
|
31 | + // |
|
32 | + } |
|
33 | 33 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function register() |
44 | 44 | { |
45 | - $this->app->singleton('xe.keygen', function ($app) { |
|
45 | + $this->app->singleton('xe.keygen', function($app) { |
|
46 | 46 | $proxyClass = $app['xe.interception']->proxy(Keygen::class, 'Keygen'); |
47 | 47 | return new $proxyClass($app['config']['xe.uid']); |
48 | 48 | }); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $this->app->singleton( |
38 | 38 | 'xe.pluginRegister', |
39 | - function ($app) { |
|
39 | + function($app) { |
|
40 | 40 | |
41 | 41 | /** @var \Xpressengine\Interception\InterceptionHandler $interception */ |
42 | 42 | $interception = $app['xe.interception']; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | $this->app->singleton( |
57 | 57 | 'xe.plugin', |
58 | - function ($app) { |
|
58 | + function($app) { |
|
59 | 59 | |
60 | 60 | $pluginDir = base_path('plugins'); |
61 | 61 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if ($app['config']->get('app.debug') === true) { |
67 | 67 | $cache = new ArrayPluginCache(); |
68 | 68 | $app->terminating( |
69 | - function () { |
|
69 | + function() { |
|
70 | 70 | app('cache')->driver('plugins')->forget('list'); |
71 | 71 | } |
72 | 72 | ); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | // boot plugins |
105 | 105 | $this->app->booted( |
106 | - function () { |
|
106 | + function() { |
|
107 | 107 | /** @var PluginHandler $pluginHandler */ |
108 | 108 | $pluginHandler = $this->app['xe.plugin']; |
109 | 109 | $pluginHandler->bootPlugins(); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function register() |
34 | 34 | { |
35 | - $this->app->bind('purifier', function ($app) { |
|
35 | + $this->app->bind('purifier', function($app) { |
|
36 | 36 | |
37 | 37 | $config = HTMLPurifier_Config::createDefault(); |
38 | 38 | $config->loadArray(array_merge( |