public function notifyObjects($method, array $args = []) {
        if ($this->_classes) {
            foreach ($this->_classes as $options) {
                if (!$options['callback'] || in_array($options['alias'], $this->_restricted)) {
                    continue;
                }

                $object = $this->getObject($options['alias']);

                if ($object && method_exists($object, $method)) {
                    call_user_func_array([$object, $method], $args);
                }
            }
        }

        return $this;
    }
public function notifyObjects($method, array $args = []) {
        if ($this->_classes) {
            foreach ($this->_classes as $options) {
                if (!$options['callback'] || in_array($options['alias'], $this->_restricted)) {
                    continue;
                }

                $object = $this->getObject($options['alias']);

                if ($object && method_exists($object, $method)) {
                    call_user_func_array([$object, $method], $args);
                }
            }
        }

        return $this;
    }
public function notifyObjects ( $ method , array $ args = [ ] ) { if ( $ this -> _classes ) { foreach ( $ this -> _classes as $ options ) { if ( ! $ options [ 'callback' ] || in_array ( $ options [ 'alias' ] , $ this -> _restricted ) ) { continue ; } $ object = $ this -> getObject ( $ options [ 'alias' ] ) ; if ( $ object && method_exists ( $ object , $ method ) ) { call_user_func_array ( [ $ object , $ method ] , $ args ) ; } } } return $ this ; }
Cycle through all loaded objects and trigger the defined hook method.

@param string $method
@param array $args
@return $this
Cycle through all loaded objects and trigger the defined hook method .