@@ -50,18 +50,18 @@ discard block |
||
50 | 50 | protected $app; |
51 | 51 | |
52 | 52 | /** |
53 | - * The bootstrap classes for the application. |
|
54 | - * |
|
55 | - * @var array $bootstrappers |
|
56 | - */ |
|
57 | - protected $bootstrappers = [ |
|
58 | - \Syscodes\Core\Bootstrap\BootDetectEnvironment::class, |
|
59 | - \Syscodes\Core\Bootstrap\BootConfiguration::class, |
|
60 | - \Syscodes\Core\Bootstrap\BootHandleExceptions::class, |
|
61 | - \Syscodes\Core\Bootstrap\BootRegisterFacades::class, |
|
62 | - \Syscodes\Core\Bootstrap\BootRegisterProviders::class, |
|
63 | - \Syscodes\Core\Bootstrap\BootProviders::class, |
|
64 | - ]; |
|
53 | + * The bootstrap classes for the application. |
|
54 | + * |
|
55 | + * @var array $bootstrappers |
|
56 | + */ |
|
57 | + protected $bootstrappers = [ |
|
58 | + \Syscodes\Core\Bootstrap\BootDetectEnvironment::class, |
|
59 | + \Syscodes\Core\Bootstrap\BootConfiguration::class, |
|
60 | + \Syscodes\Core\Bootstrap\BootHandleExceptions::class, |
|
61 | + \Syscodes\Core\Bootstrap\BootRegisterFacades::class, |
|
62 | + \Syscodes\Core\Bootstrap\BootRegisterProviders::class, |
|
63 | + \Syscodes\Core\Bootstrap\BootProviders::class, |
|
64 | + ]; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * Constructor. Create new console Lenevor instance. |
@@ -107,19 +107,19 @@ discard block |
||
107 | 107 | public function bootstrap() |
108 | 108 | { |
109 | 109 | if ( ! $this->app->hasBeenBootstrapped()) { |
110 | - $this->app->bootstrapWith($this->bootstrappers()); |
|
111 | - } |
|
110 | + $this->app->bootstrapWith($this->bootstrappers()); |
|
111 | + } |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | - * Get the bootstrap classes for the application. |
|
116 | - * |
|
117 | - * @return array |
|
118 | - */ |
|
119 | - protected function bootstrappers() |
|
120 | - { |
|
121 | - return $this->bootstrappers; |
|
122 | - } |
|
115 | + * Get the bootstrap classes for the application. |
|
116 | + * |
|
117 | + * @return array |
|
118 | + */ |
|
119 | + protected function bootstrappers() |
|
120 | + { |
|
121 | + return $this->bootstrappers; |
|
122 | + } |
|
123 | 123 | |
124 | 124 | /** |
125 | 125 | * Get the Prime application instance. |
@@ -132,27 +132,27 @@ discard block |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
135 | - * Report the exception to the exception handler. |
|
136 | - * |
|
137 | - * @param \Throwable $e |
|
138 | - * |
|
139 | - * @return void |
|
140 | - */ |
|
141 | - protected function reportException(Throwable $e) |
|
142 | - { |
|
143 | - $this->app[ExceptionHandler::class]->report($e); |
|
144 | - } |
|
135 | + * Report the exception to the exception handler. |
|
136 | + * |
|
137 | + * @param \Throwable $e |
|
138 | + * |
|
139 | + * @return void |
|
140 | + */ |
|
141 | + protected function reportException(Throwable $e) |
|
142 | + { |
|
143 | + $this->app[ExceptionHandler::class]->report($e); |
|
144 | + } |
|
145 | 145 | |
146 | - /** |
|
147 | - * Render the exception to a response. |
|
148 | - * |
|
149 | - * @param \Syscodes\Http\Request $request |
|
150 | - * @param \Throwable $e |
|
151 | - * |
|
152 | - * @return void |
|
153 | - */ |
|
154 | - protected function renderException($request, Throwable $e) |
|
155 | - { |
|
156 | - $this->app[ExceptionHandler::class]->render($request, $e); |
|
157 | - } |
|
146 | + /** |
|
147 | + * Render the exception to a response. |
|
148 | + * |
|
149 | + * @param \Syscodes\Http\Request $request |
|
150 | + * @param \Throwable $e |
|
151 | + * |
|
152 | + * @return void |
|
153 | + */ |
|
154 | + protected function renderException($request, Throwable $e) |
|
155 | + { |
|
156 | + $this->app[ExceptionHandler::class]->render($request, $e); |
|
157 | + } |
|
158 | 158 | } |
159 | 159 | \ No newline at end of file |
@@ -29,17 +29,17 @@ |
||
29 | 29 | */ |
30 | 30 | interface Application |
31 | 31 | { |
32 | - /** |
|
33 | - * Runs the current command discovered on the CLI. |
|
34 | - * |
|
35 | - * @return void |
|
36 | - */ |
|
37 | - public function run(); |
|
32 | + /** |
|
33 | + * Runs the current command discovered on the CLI. |
|
34 | + * |
|
35 | + * @return void |
|
36 | + */ |
|
37 | + public function run(); |
|
38 | 38 | |
39 | - /** |
|
40 | - * Displays basic information about the Console. |
|
41 | - * |
|
42 | - * @return void |
|
43 | - */ |
|
44 | - public function showHeader(); |
|
39 | + /** |
|
40 | + * Displays basic information about the Console. |
|
41 | + * |
|
42 | + * @return void |
|
43 | + */ |
|
44 | + public function showHeader(); |
|
45 | 45 | } |
46 | 46 | \ No newline at end of file |
@@ -34,57 +34,57 @@ |
||
34 | 34 | */ |
35 | 35 | class Application implements ApplicationContracts |
36 | 36 | { |
37 | - /** |
|
38 | - * The Lenevor application instance.. |
|
39 | - * |
|
40 | - * @var \Syscodes\Contracts\Container|Container $lenevor |
|
41 | - */ |
|
42 | - protected $lenevor; |
|
37 | + /** |
|
38 | + * The Lenevor application instance.. |
|
39 | + * |
|
40 | + * @var \Syscodes\Contracts\Container|Container $lenevor |
|
41 | + */ |
|
42 | + protected $lenevor; |
|
43 | 43 | |
44 | - /** |
|
45 | - * Console constructor. Initialize the console of Lenevor. |
|
46 | - * |
|
47 | - * @param \Syscodes\Contracts\Core\Lenevor $core |
|
48 | - * |
|
49 | - * @return void |
|
50 | - */ |
|
51 | - public function __construct(Container $lenevor) |
|
52 | - { |
|
53 | - // Initialize the Cli |
|
54 | - if (isCli()) { |
|
55 | - Cli::initialize(); |
|
56 | - } |
|
44 | + /** |
|
45 | + * Console constructor. Initialize the console of Lenevor. |
|
46 | + * |
|
47 | + * @param \Syscodes\Contracts\Core\Lenevor $core |
|
48 | + * |
|
49 | + * @return void |
|
50 | + */ |
|
51 | + public function __construct(Container $lenevor) |
|
52 | + { |
|
53 | + // Initialize the Cli |
|
54 | + if (isCli()) { |
|
55 | + Cli::initialize(); |
|
56 | + } |
|
57 | 57 | |
58 | - $this->lenevor = $lenevor; |
|
59 | - } |
|
58 | + $this->lenevor = $lenevor; |
|
59 | + } |
|
60 | 60 | |
61 | - /** |
|
62 | - * Runs the current command discovered on the CLI. |
|
63 | - * |
|
64 | - * @return void |
|
65 | - */ |
|
66 | - public function run() |
|
67 | - { |
|
68 | - $path = Cli::getURI(); |
|
61 | + /** |
|
62 | + * Runs the current command discovered on the CLI. |
|
63 | + * |
|
64 | + * @return void |
|
65 | + */ |
|
66 | + public function run() |
|
67 | + { |
|
68 | + $path = Cli::getURI(); |
|
69 | 69 | |
70 | 70 | |
71 | - } |
|
71 | + } |
|
72 | 72 | |
73 | - /** |
|
74 | - * Displays basic information about the Console. |
|
75 | - * |
|
76 | - * @return $this |
|
77 | - */ |
|
78 | - public function showHeader() |
|
79 | - { |
|
80 | - Cli::write(Version::PRODUCT.' ' |
|
81 | - .Cli::color(Version::RELEASE, 'cyan').' | ' |
|
82 | - .'Server Time: '.Cli::color(date('Y/m/d H:i:sa'), 'light_yellow').' | ' |
|
83 | - .cli::color('['.PHP_OS.']', 'light_purple') |
|
84 | - ); |
|
73 | + /** |
|
74 | + * Displays basic information about the Console. |
|
75 | + * |
|
76 | + * @return $this |
|
77 | + */ |
|
78 | + public function showHeader() |
|
79 | + { |
|
80 | + Cli::write(Version::PRODUCT.' ' |
|
81 | + .Cli::color(Version::RELEASE, 'cyan').' | ' |
|
82 | + .'Server Time: '.Cli::color(date('Y/m/d H:i:sa'), 'light_yellow').' | ' |
|
83 | + .cli::color('['.PHP_OS.']', 'light_purple') |
|
84 | + ); |
|
85 | 85 | |
86 | - Cli::newLine(1); |
|
86 | + Cli::newLine(1); |
|
87 | 87 | |
88 | - return $this; |
|
89 | - } |
|
88 | + return $this; |
|
89 | + } |
|
90 | 90 | } |
91 | 91 | \ No newline at end of file |