annotate src/MagicForgerServiceProvider.php @ 20:81a76472ba21 main-dev

More namespace issues
author Luka Sitas <sitas.luka.97@gmail.com>
date Wed, 26 Feb 2025 19:29:55 -0500
parents 769a17898cc0
children 1a717c7b211f
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
20
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
3 namespace Wizard\MagicForger;
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
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;
20
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
6 use Wizard\MagicForger\Generator\Controller\ControllerGenerator;
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
7 use Wizard\MagicForger\Generator\Generator;
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
8 use Wizard\MagicForger\Generator\Model\ModelGenerator;
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
9 use Wizard\MagicForger\Generator\Requests\RequestGenerator;
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
10 use Wizard\MagicForger\Generator\Requests\StoreRequestGenerator;
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
11 use Wizard\MagicForger\Generator\Requests\UpdateRequestGenerator;
81a76472ba21 More namespace issues
Luka Sitas <sitas.luka.97@gmail.com>
parents: 7
diff changeset
12 use Wizard\MagicForger\Generator\Route\RouteGenerator;
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
13
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
14 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
15 {
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
16 /**
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
17 * Bootstrap any package services.
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
18 */
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
19 public function boot(): void
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 if ($this->app->runningInConsole()) {
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
22 $this->commands([
3
6468684362c2 It works! Created a controller, no update insert but it works
luka
parents: 2
diff changeset
23 Generator::class,
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
24 ControllerGenerator::class,
4
a20439b1c9d3 Added Model generator and other updates.
luka
parents: 3
diff changeset
25 ModelGenerator::class,
5
b0b2e79ad8e6 Not exatly sure what was changed but commiting to it :)
luka
parents: 4
diff changeset
26 RequestGenerator::class,
b0b2e79ad8e6 Not exatly sure what was changed but commiting to it :)
luka
parents: 4
diff changeset
27 StoreRequestGenerator::class,
b0b2e79ad8e6 Not exatly sure what was changed but commiting to it :)
luka
parents: 4
diff changeset
28 UpdateRequestGenerator::class,
b0b2e79ad8e6 Not exatly sure what was changed but commiting to it :)
luka
parents: 4
diff changeset
29 RouteGenerator::class,
2
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
30 ]);
cf9993c5c7df Updated .vimrc for some helper commands.
luka
parents: 1
diff changeset
31 }
7
769a17898cc0 Various changes to the generators and replacers - probably mostly just formatting
luka
parents: 5
diff changeset
32
769a17898cc0 Various changes to the generators and replacers - probably mostly just formatting
luka
parents: 5
diff changeset
33 $this->register_config_helper();
769a17898cc0 Various changes to the generators and replacers - probably mostly just formatting
luka
parents: 5
diff changeset
34 }
769a17898cc0 Various changes to the generators and replacers - probably mostly just formatting
luka
parents: 5
diff changeset
35
769a17898cc0 Various changes to the generators and replacers - probably mostly just formatting
luka
parents: 5
diff changeset
36 public function register_config_helper()
769a17898cc0 Various changes to the generators and replacers - probably mostly just formatting
luka
parents: 5
diff changeset
37 {
769a17898cc0 Various changes to the generators and replacers - probably mostly just formatting
luka
parents: 5
diff changeset
38 ConfigHelper::setup_config_path(base_path());
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
39 }
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
40 }