services = apply_filters('agent_mod_services', $this->services); foreach ($this->services as $service) { DI::container()->get($service); } } /** * Initialize all controllers * @throws Exception * @throws DependencyException * @throws NotFoundException * @since 1.0.0 */ public function initPluginControllers(): void { //Initialize all controllers foreach ( $this->controllers as $controller ) { DI::container()->get( $controller ); } } }