* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Event\Dispatcher; use PrestaShop\PrestaShop\Core\Hook\HookDispatcherInterface; use PrestaShop\PrestaShop\Core\Hook\HookInterface; use PrestaShop\PrestaShop\Core\Hook\RenderedHookInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class NullDispatcher implements EventDispatcherInterface, HookDispatcherInterface { public function addListener($eventName, $listener, $priority = 0) { } public function addSubscriber(EventSubscriberInterface $subscriber) { } /** * @param object $event * @param string|null $eventName * * @return object|void */ public function dispatch($event, string $eventName = null) { } /** * @param null $eventName * * @return array|void */ public function getListeners($eventName = null) { } /** * @param null $eventName * * @return bool|void */ public function hasListeners($eventName = null) { } public function removeListener($eventName, $listener) { } public function removeSubscriber(EventSubscriberInterface $subscriber) { } /** * @param string $eventName * @param callable $listener * * @return int|void|null */ public function getListenerPriority($eventName, $listener) { } public function dispatchHook(HookInterface $hook) { } public function dispatchWithParameters($hookName, array $hookParameters = []) { } /** * @param HookInterface $hook * * @return RenderedHookInterface|void */ public function dispatchRendering(HookInterface $hook) { } /** * @param string $hookName * @param array $hookParameters * * @return RenderedHookInterface|void */ public function dispatchRenderingWithParameters($hookName, array $hookParameters = []) { } }