UserServiceProvider.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Kirki\App\Providers; |
| 4 | |
| 5 | use Kirki\App\Wordpress\User; |
| 6 | use Kirki\Framework\ServiceProvider; |
| 7 | |
| 8 | class UserServiceProvider extends ServiceProvider |
| 9 | { |
| 10 | /** |
| 11 | * Register the hooks to the application. |
| 12 | * |
| 13 | * @return void |
| 14 | */ |
| 15 | public function register() |
| 16 | { |
| 17 | $this->app->singleton(\Kirki\Framework\Wordpress\User::class, function () { |
| 18 | return new User(); |
| 19 | }); |
| 20 | } |
| 21 | } |
| 22 |