| 1 | <?php |
||
| 25 | final class PluginFactory { |
||
| 26 | |||
| 27 | use PluginHelper; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Create and return an instance of the plugin. |
||
| 31 | * |
||
| 32 | * This always returns a shared instance. |
||
| 33 | * |
||
| 34 | * @since %VERSION% |
||
| 35 | * |
||
| 36 | * @return Plugin The plugin instance. |
||
| 37 | */ |
||
| 38 | public function create() { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the service container for our class. |
||
| 50 | * |
||
| 51 | * @since %VERSION% |
||
| 52 | * @return Container |
||
| 53 | */ |
||
| 54 | private function get_service_container() { |
||
| 67 | } |