| 1 |
<?php |
| 2 |
namespace Depicter\Dashboard; |
| 3 |
|
| 4 |
use WPEmerge\ServiceProviders\ServiceProviderInterface; |
| 5 |
|
| 6 |
/** |
| 7 |
* Loads dashboard. |
| 8 |
*/ |
| 9 |
class DashboardServiceProvider implements ServiceProviderInterface { |
| 10 |
|
| 11 |
/** |
| 12 |
* {@inheritDoc} |
| 13 |
*/ |
| 14 |
/** |
| 15 |
* {@inheritDoc} |
| 16 |
*/ |
| 17 |
public function register( $container ) { |
| 18 |
$container[ 'depicter.dashboard.page' ] = function () { |
| 19 |
return new DashboardPage(); |
| 20 |
}; |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* {@inheritDoc} |
| 25 |
*/ |
| 26 |
public function bootstrap( $container ) { |
| 27 |
\Depicter::resolve('depicter.dashboard.page')->bootstrap(); |
| 28 |
} |
| 29 |
|
| 30 |
} |
| 31 |
|