diff --git a/src/Cli/Assets/Colors.php b/src/Cli/Assets/Colors.php index d0c54ea..5e0b04c 100644 --- a/src/Cli/Assets/Colors.php +++ b/src/Cli/Assets/Colors.php @@ -58,11 +58,11 @@ trait Colors { $colored_string = ""; - if (isset($this->foreground_colors[$foreground])) { + if (isset($this->foreground[$foreground])) { $colored_string .= "\033[" . $this->foreground[$foreground] . "m"; } - if (isset($this->background_colors[$background])) { + if (isset($this->background[$background])) { $colored_string .= "\033[" . $this->background[$background] . "m"; } diff --git a/src/Cli/Collection/CommandsCollection.php b/src/Cli/Collection/CommandsCollection.php index a85c045..adcf88a 100644 --- a/src/Cli/Collection/CommandsCollection.php +++ b/src/Cli/Collection/CommandsCollection.php @@ -27,7 +27,7 @@ class CommandsCollection if(!class_exists($class)) continue; - $executor = app($class); + $executor = app()->make($class); self::$collection[$executor->signature] = $executor; } } diff --git a/src/Runtime/Factory/BootstrapFactory.php b/src/Runtime/Factory/BootstrapFactory.php index 6ba5775..813e174 100644 --- a/src/Runtime/Factory/BootstrapFactory.php +++ b/src/Runtime/Factory/BootstrapFactory.php @@ -22,7 +22,7 @@ class BootstrapFactory { require_once('../routes/web.php'); // start engines - app(ViewEngine::class); + app()->make(ViewEngine::class); try { Route::start(); @@ -37,7 +37,7 @@ class BootstrapFactory { */ public function kernel() { - app(CliFactory::class)->handle(); + app()->make(CliFactory::class)->handle(); } /** diff --git a/src/Runtime/Helpers/helpers.php b/src/Runtime/Helpers/helpers.php index a36b9f4..ea08936 100644 --- a/src/Runtime/Helpers/helpers.php +++ b/src/Runtime/Helpers/helpers.php @@ -166,7 +166,7 @@ if(!function_exists('view')) */ function view($name, $arguments = []) { - $factory = app(ViewFactory::class); + $factory = app()->make(ViewFactory::class); return $factory->make($name, $arguments); }