Server IP : 127.0.0.2 / Your IP : 3.144.250.2 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/vendor/guzzlehttp/guzzle/src/Event/ |
Upload File : |
<?php namespace GuzzleHttp\Event; /** * Guzzle event emitter. */ interface EmitterInterface { /** * Binds a listener to a specific event. * * @param string $eventName Name of the event to bind to. * @param callable $listener Listener to invoke when triggered. * @param int|string $priority The higher this value, the earlier an event * listener will be triggered in the chain (defaults to 0). You can * pass "first" or "last" to dynamically specify the event priority * based on the current event priorities associated with the given * event name in the emitter. Use "first" to set the priority to the * current highest priority plus one. Use "last" to set the priority to * the current lowest event priority minus one. */ public function on($eventName, callable $listener, $priority = 0); /** * Binds a listener to a specific event. After the listener is triggered * once, it is removed as a listener. * * @param string $eventName Name of the event to bind to. * @param callable $listener Listener to invoke when triggered. * @param int $priority The higher this value, the earlier an event * listener will be triggered in the chain (defaults to 0) */ public function once($eventName, callable $listener, $priority = 0); /** * Removes an event listener from the specified event. * * @param string $eventName The event to remove a listener from * @param callable $listener The listener to remove */ public function removeListener($eventName, callable $listener); /** * Gets the listeners of a specific event or all listeners if no event is * specified. * * @param string $eventName The name of the event. Pass null (the default) * to retrieve all listeners. * * @return array The event listeners for the specified event, or all event * listeners by event name. The format of the array when retrieving a * specific event list is an array of callables. The format of the array * when retrieving all listeners is an associative array of arrays of * callables. */ public function listeners($eventName = null); /** * Checks if the emitter has listeners by the given name. * * @param string $eventName The name of the event to check. * * @return bool */ public function hasListeners($eventName); /** * Emits an event to all registered listeners. * * Each event that is bound to the emitted eventName receives a * EventInterface, the name of the event, and the event emitter. * * @param string $eventName The name of the event to dispatch. * @param EventInterface $event The event to pass to the event handlers/listeners. * * @return EventInterface Returns the provided event object */ public function emit($eventName, EventInterface $event); /** * Attaches an event subscriber. * * The subscriber is asked for all the events it is interested in and added * as an event listener for each event. * * @param SubscriberInterface $subscriber Subscriber to attach. */ public function attach(SubscriberInterface $subscriber); /** * Detaches an event subscriber. * * @param SubscriberInterface $subscriber Subscriber to detach. */ public function detach(SubscriberInterface $subscriber); }