comparison src/FrameworkServiceProvider.php @ 4:84c75d9d90be

Changing usage to be bootstrap 5, not everything is reviewed but it's been started
author luka
date Tue, 19 Aug 2025 20:33:35 -0400
parents e107504fa22c
children
comparison
equal deleted inserted replaced
3:e107504fa22c 4:84c75d9d90be
1 <?php 1 <?php
2 2
3 namespace Wizard\Framework; 3 namespace Wizard\Framework;
4 4
5 use Illuminate\Support\ServiceProvider; 5 use Illuminate\Support\ServiceProvider;
6 use Illuminate\Support\Facades\Blade;
7 use \Wizard\Framework\Database\MySchema;
6 8
7 class FrameworkServiceProvider extends ServiceProvider { 9 class FrameworkServiceProvider extends ServiceProvider
8 public function register():void 10 {
9 { 11 public function register(): void
10 $this->app->bind('db.schema', fn () => \Libraries\MySchema::customizedSchemaBuilder()); 12 {
11 } 13 $this->app->bind('db.schema', fn () => MySchema::customizedSchemaBuilder());
14 }
12 15
13 public function boot(): void { 16 public function boot(): void
14 $publish_path = __DIR__.'/../publishable'; 17 {
15 $this->publishes([ 18 $publish_path = __DIR__.'/../publishable';
16 $publish_path.'/resources' => resource_path(), 19 $this->publishes([
17 $publish_path.'/vite.config.js' => base_path('vite.config.js'), 20 $publish_path.'/resources' => resource_path(),
18 $publish_path.'/package.json' => base_path('package.json'), 21 $publish_path.'/vite.config.js' => base_path('vite.config.js'),
19 ]); 22 $publish_path.'/package.json' => base_path('package.json'),
23 $publish_path.'/stubs' => base_path('stubs'),
24 ]);
20 25
21 foreach (glob(base_path('routes/resources/*.php')) as $routeFile) { 26 foreach (glob(base_path('routes/resources/*.php')) as $routeFile) {
22 $this->loadRoutesFrom($routeFile); 27 $this->loadRoutesFrom($routeFile);
23 } 28 }
24 29
25 } 30 }
26 } 31 }