![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/plugins/wp-rocket/inc/Engine/Support/ |
<?php namespace WP_Rocket\Engine\Support; use WP_Rocket\Event_Management\Subscriber_Interface; class Subscriber implements Subscriber_Interface { /** * Rest instance * * @var Rest */ private $rest; /** * Instantiate the class * * @param Rest $rest Rest instance. */ public function __construct( Rest $rest ) { $this->rest = $rest; } /** * Events this subscriber listens to. * * @return array */ public static function get_subscribed_events() { return [ 'rest_api_init' => 'register_support_route', ]; } /** * Registers the rest support route * * @since 3.7.5 * * @return void */ public function register_support_route() { $this->rest->register_route(); } }