| 1 |
<?php |
| 2 |
|
| 3 |
namespace Depicter\WordPress; |
| 4 |
|
| 5 |
use WPEmerge\ServiceProviders\ServiceProviderInterface; |
| 6 |
|
| 7 |
/** |
| 8 |
* Register widgets. |
| 9 |
*/ |
| 10 |
class WidgetsServiceProvider implements ServiceProviderInterface { |
| 11 |
/** |
| 12 |
* {@inheritDoc} |
| 13 |
*/ |
| 14 |
public function register( $container ) { |
| 15 |
// Nothing to register. |
| 16 |
} |
| 17 |
|
| 18 |
/** |
| 19 |
* {@inheritDoc} |
| 20 |
*/ |
| 21 |
public function bootstrap( $container ) { |
| 22 |
add_action( 'widgets_init', [$this, 'registerWidgets'] ); |
| 23 |
} |
| 24 |
|
| 25 |
/** |
| 26 |
* Register widgets. |
| 27 |
* |
| 28 |
* @return void |
| 29 |
*/ |
| 30 |
public function registerWidgets() { |
| 31 |
// phpcs:ignore |
| 32 |
// register_widget( MyWidgetClass::class ); |
| 33 |
} |
| 34 |
} |
| 35 |
|