Skip to content

Commit d59d31f

Browse files
committed
add: new module provider for app, and route provide
1 parent 161a5b1 commit d59d31f

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace LaraCore\App\Providers;
4+
5+
use LaraCore\Framework\Providers\ServiceProvider;
6+
7+
class AppServiceProvider extends ServiceProvider
8+
{
9+
public function register()
10+
{
11+
// $this->app->bind('test', function() {
12+
// return 'test';
13+
// });
14+
}
15+
16+
public function boot()
17+
{
18+
// $this->app->bind('test', function() {
19+
// return 'test';
20+
// });
21+
}
22+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace LaraCore\App\Providers;
4+
5+
use LaraCore\Framework\Providers\ServiceProvider;
6+
7+
class RouteServiceProvider extends ServiceProvider
8+
{
9+
public function register()
10+
{
11+
//
12+
}
13+
14+
public function boot()
15+
{
16+
//
17+
}
18+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace LaraCore\Framework\Providers;
4+
5+
class ServiceProvider
6+
{
7+
protected $app;
8+
9+
public function __construct($app)
10+
{
11+
$this->app = $app;
12+
}
13+
14+
public function register()
15+
{
16+
//
17+
}
18+
19+
public function boot()
20+
{
21+
//
22+
}
23+
}

0 commit comments

Comments
 (0)