diff --git a/src/System/Integrate/Console/Karnel.php b/src/System/Integrate/Console/Karnel.php index 748bea6e..3dfcda85 100644 --- a/src/System/Integrate/Console/Karnel.php +++ b/src/System/Integrate/Console/Karnel.php @@ -11,7 +11,11 @@ class Karnel { + /** + * Application Container. + */ protected Application $app; + /** @var int concole exit status */ protected $exit_code; @@ -93,9 +97,7 @@ public function handle($arguments) */ public function bootstrap(): void { - if (method_exists($this->app, 'bootstrapWith')) { - $this->app->{'bootstrapWith'}($this->bootstrappers); - } + $this->app->bootstrapWith($this->bootstrappers); } /** diff --git a/src/System/Integrate/Http/Karnel.php b/src/System/Integrate/Http/Karnel.php index 180b5e17..f3818ba9 100644 --- a/src/System/Integrate/Http/Karnel.php +++ b/src/System/Integrate/Http/Karnel.php @@ -6,15 +6,18 @@ use System\Http\Request; use System\Http\Response; +use System\Integrate\Application; use System\Integrate\Bootstrap\BootProviders; use System\Integrate\Bootstrap\RegisterProviders; -use System\Integrate\Application; use System\Integrate\Exceptions\Handler; use System\Integrate\Http\Middleware\MaintenanceMiddleware; use System\Router\Router; class Karnel { + /** + * Application Container. + */ protected Application $app; /** @var array Global middleware */ @@ -77,9 +80,7 @@ public function handle(Request $request) */ public function bootstrap(): void { - if (method_exists($this->app, 'bootstrapWith')) { - $this->app->{'bootstrapWith'}($this->bootstrappers); - } + $this->app->bootstrapWith($this->bootstrappers); } /**