provides, true ); } /** * Registers items with the container * * @return void */ public function register(): void { $this->getContainer()->addShared( 'frontend_api_rest', FrontendApiRest::class ) ->addArguments( [ 'backwpup_helpers_adapter' => $this->getContainer()->get( 'backwpup_helpers_adapter' ), ] ); $this->getContainer()->addShared( 'frontend_api_subscriber', FrontendApiSubscriber::class ) ->addArgument( 'frontend_api_rest' ); } /** * Returns the subscribers array * * @return array */ public function get_subscribers() { return $this->subscribers; } }