| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package WPEmergeAppCore |
| 4 |
* @author Atanas Angelov <hi@atanas.dev> |
| 5 |
* @copyright 2017-2020 Atanas Angelov |
| 6 |
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 |
| 7 |
* @link https://wpemerge.com/ |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace WPEmergeAppCore\Avatar; |
| 11 |
|
| 12 |
use WPEmerge\ServiceProviders\ServiceProviderInterface; |
| 13 |
|
| 14 |
/** |
| 15 |
* Provide avatar dependencies. |
| 16 |
* |
| 17 |
* @codeCoverageIgnore |
| 18 |
*/ |
| 19 |
class AvatarServiceProvider implements ServiceProviderInterface { |
| 20 |
/** |
| 21 |
* {@inheritDoc} |
| 22 |
*/ |
| 23 |
public function register( $container ) { |
| 24 |
$container['wpemerge_app_core.avatar.avatar'] = function() { |
| 25 |
return new Avatar(); |
| 26 |
}; |
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* {@inheritDoc} |
| 31 |
*/ |
| 32 |
public function bootstrap( $container ) { |
| 33 |
$container['wpemerge_app_core.avatar.avatar']->bootstrap(); |
| 34 |
} |
| 35 |
} |
| 36 |
|