Linux webm002.cluster126.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
/
home
/
ariannadhf
/
www
/
wp-content
/
plugins
/
wp-mail-logging
/
src
/
/home/ariannadhf/www/wp-content/plugins/wp-mail-logging/src/WPML_DI_Container.php
<?php namespace No3x\WPML; use No3x\WPML\Pimple\Container; use \ReflectionClass; class WPML_DI_Container extends Container { public function addActionsAndFilters() { foreach ($this->keys() as $key) { $content = $this[$key]; if (is_object($content)) { $reflection = new ReflectionClass($content); if( $this->hasMethod($reflection) ) { if( !$this->implementsInterface($reflection) ) { $this->log($content); } /** @var $content IHooks */ $content->addActionsAndFilters(); } } } } private function implementsInterface(ReflectionClass $reflection) { return ($reflection->implementsInterface('No3x\WPML\IHooks')); } private function hasMethod(ReflectionClass $reflection) { return ($reflection->hasMethod('addActionsAndFilters')); } private function log($object) { $class_name = get_class($object); error_log("{$class_name} doesn't implement the IHook Interface but it seems like it should. Did you forget to add the implements statement?"); } }