annotate src/MagicForgerServiceProvider.php @ 2:cf9993c5c7df

Updated .vimrc for some helper commands. updated the Base Generator Brought the controller generator into the package created an example generator, but it needs some work.
author luka
date Sun, 25 Jun 2023 14:45:15 -0400
parents ca36acd2bef2
children 6468684362c2
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;
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
6 use Wizzard\Magicforger\Generator\BaseGenerator;
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
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([
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
18 BaseGenerator::class,
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 }