annotate src/MagicForgerServiceProvider.php @ 3:6468684362c2

It works! Created a controller, no update insert but it works
author luka
date Tue, 27 Jun 2023 15:32:47 -0400
parents cf9993c5c7df
children a20439b1c9d3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
1 <?php
1
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
2
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
3 namespace Wizzard\MagicForger;
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
4
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
5 use Illuminate\Support\ServiceProvider;
3
6468684362c2 It works! Created a controller, no update insert but it works
luka
parents: 2
diff changeset
6 use Wizzard\MagicForger\Generator\Generator;
6468684362c2 It works! Created a controller, no update insert but it works
luka
parents: 2
diff changeset
7 use Wizzard\MagicForger\Generator\Controller\ControllerGenerator;
1
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
8
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
9 class MagicForgerServiceProvider extends ServiceProvider
1
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
10 {
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
11 /**
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
12 * Bootstrap any package services.
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
13 */
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
14 public function boot(): void
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
15 {
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
16 if ($this->app->runningInConsole()) {
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
17 $this->commands([
3
6468684362c2 It works! Created a controller, no update insert but it works
luka
parents: 2
diff changeset
18 Generator::class,
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
19 ControllerGenerator::class,
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
20 ]);
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
21 }
1
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
22 }
ca36acd2bef2 Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff changeset
23 }