![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/vendor/league/event/src/ |
<?php namespace League\Event; interface ListenerAcceptorInterface { /** * High priority. * * @const int */ const P_HIGH = 100; /** * Normal priority. * * @const int */ const P_NORMAL = 0; /** * Low priority. * * @const int */ const P_LOW = -100; /** * Add a listener for an event. * * The first parameter should be the event name, and the second should be * the event listener. It may implement the League\Event\ListenerInterface * or simply be "callable". In this case, the priority emitter also accepts * an optional third parameter specifying the priority as an integer. You * may use one of our predefined constants here if you want. * * @param string $event * @param ListenerInterface|callable $listener * @param int $priority * * @return $this */ public function addListener($event, $listener, $priority = self::P_NORMAL); /** * Add a one time listener for an event. * * The first parameter should be the event name, and the second should be * the event listener. It may implement the League\Event\ListenerInterface * or simply be "callable". * * @param string $event * @param ListenerInterface|callable $listener * @param int $priority * * @return $this */ public function addOneTimeListener($event, $listener, $priority = self::P_NORMAL); }