getContainer()->get( 'options' ); // RocketCDN API Client. $this->getContainer()->add( 'rocketcdn_api_client', 'WP_Rocket\Engine\CDN\RocketCDN\APIClient' ); // RocketCDN CDN options manager. $this->getContainer()->add( 'rocketcdn_options_manager', 'WP_Rocket\Engine\CDN\RocketCDN\CDNOptionsManager' ) ->withArgument( $this->getContainer()->get( 'options_api' ) ) ->withArgument( $options ); // RocketCDN Data manager subscriber. $this->getContainer()->share( 'rocketcdn_data_manager_subscriber', 'WP_Rocket\Engine\CDN\RocketCDN\DataManagerSubscriber' ) ->withArgument( $this->getContainer()->get( 'rocketcdn_api_client' ) ) ->withArgument( $this->getContainer()->get( 'rocketcdn_options_manager' ) ); // RocketCDN REST API Subscriber. $this->getContainer()->share( 'rocketcdn_rest_subscriber', 'WP_Rocket\Engine\CDN\RocketCDN\RESTSubscriber' ) ->withArgument( $this->getContainer()->get( 'rocketcdn_options_manager' ) ) ->withArgument( $options ); // RocketCDN Notices Subscriber. $this->getContainer()->share( 'rocketcdn_notices_subscriber', 'WP_Rocket\Engine\CDN\RocketCDN\NoticesSubscriber' ) ->withArgument( $this->getContainer()->get( 'rocketcdn_api_client' ) ) ->withArgument( __DIR__ . '/views' ); // RocketCDN settings page subscriber. $this->getContainer()->share( 'rocketcdn_admin_subscriber', 'WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber' ) ->withArgument( $this->getContainer()->get( 'rocketcdn_api_client' ) ) ->withArgument( $options ) ->withArgument( $this->getContainer()->get( 'beacon' ) ) ->withArgument( __DIR__ . '/views' ); } }