annotate src/FrameworkServiceProvider.php @ 3:e107504fa22c

New assets related to BS5
author luka
date Mon, 23 Jun 2025 20:20:31 -0400
parents b44434aaa767
children 84c75d9d90be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
1 <?php
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
2
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
3 namespace Wizard\Framework;
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
4
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
5 use Illuminate\Support\ServiceProvider;
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
6
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
7 class FrameworkServiceProvider extends ServiceProvider {
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
8 public function register():void
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
9 {
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
10 $this->app->bind('db.schema', fn () => \Libraries\MySchema::customizedSchemaBuilder());
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
11 }
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
12
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
13 public function boot(): void {
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
14 $publish_path = __DIR__.'/../publishable';
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
15 $this->publishes([
3
e107504fa22c New assets related to BS5
luka
parents: 2
diff changeset
16 $publish_path.'/resources' => resource_path(),
e107504fa22c New assets related to BS5
luka
parents: 2
diff changeset
17 $publish_path.'/vite.config.js' => base_path('vite.config.js'),
e107504fa22c New assets related to BS5
luka
parents: 2
diff changeset
18 $publish_path.'/package.json' => base_path('package.json'),
2
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
19 ]);
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
20
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
21 foreach (glob(base_path('routes/resources/*.php')) as $routeFile) {
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
22 $this->loadRoutesFrom($routeFile);
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
23 }
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
24
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
25 }
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
26 }