PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | vendor/wpfluent/framework/src/WPFluent/Foundation/ComponentBinder.php +22 -1 2.2.5 → 2.5.0 View file →
@@ -16,8 +16,9 @@
16 16 use FluentBooking\Framework\Encryption\Encrypter;
17 17 use FluentBooking\Framework\Database\Orm\Model;
18 18 use FluentBooking\Framework\Validator\Validator;
19 19 use FluentBooking\Framework\Foundation\RequestGuard;
20 +use FluentBooking\Framework\Foundation\Exceptions\ExceptionHandler;
20 21 use FluentBooking\Framework\Database\DatabaseManager;
21 22 use FluentBooking\Framework\Database\DatabaseTransactionsManager;
22 23 use FluentBooking\Framework\Database\ConnectionResolver;
23 24 use FluentBooking\Framework\Database\Query\WPDBConnection;
@@ -54,8 +55,9 @@
54 55 'Router',
55 56 'Mail',
56 57 'Paginator',
57 58 'Pipeline',
59 + 'ExceptionHandler',
58 60 ];
59 61
60 62 /**
61 63 * Construct the binder
@@ -342,9 +344,28 @@
342 344 $this->app->bind(Pipeline::class, function ($app) {
343 345 return new Pipeline($app);
344 346 });
345 347
346 - $this->app->alias(Pipeline::class, 'pipeline');
348 + $this->app->alias(Pipeline::class, 'pipeline');
349 + }
350 +
351 + /**
352 + * Bind the exception-handler registry into the container.
353 + *
354 + * Default is the bare `Foundation\Exceptions\ExceptionHandler` (no
355 + * renderables registered). Plugins override by re-binding their own
356 + * subclass to the same key from `boot/bindings.php` BEFORE the first
357 + * request hits Route.
358 + *
359 + * @return null
360 + */
361 + protected function bindExceptionHandler()
362 + {
363 + $this->app->singleton(ExceptionHandler::class, function ($app) {
364 + return new ExceptionHandler();
365 + });
366 +
367 + $this->app->alias(ExceptionHandler::class, 'exception.handler');
347 368 }
348 369
349 370 /**
350 371 * Load other bindings the developers might