EventDispatcher Component

Overview
Comments
  • Add support for setting and getting the originator of an event

    Add support for setting and getting the originator of an event

    The "originator" is the object and/or file and line number of the code that called EventDispatcher::dispatch

    This could be useful for debugging although my original motivation for this is that in my project I want the listener to be able to find out about objects that it otherwise wouldn't know about, because the objects are created after the listener is attached.

    In my specific example, I am creating for our proprietary MVC framework a debug toolbar much like Symfony's and I need a listener that is called when a view is rendered and I need that listener to be able to find out the view object that dispatched the event. This allows me to do that without subclassing Event.

    opened by msabramo 7
  • correct the event listener method case

    correct the event listener method case

    Hi, Today I found that the actual method's case of event listener was wrong, when no method was specified, for example, event name: kernel.controller_arguments, expected default method name: onkernelControllerArguments, actual method called: onKernelControllerarguments, but actually it's ok, php is case-insenstive for function call.

    ps, a service.yaml example:

    services:
      my_kernel_envent_listeners:
            class: App\EventListener\KernelListener
            tags:
                - { name: kernel.event_listener, event: kernel.request, method: onKernelRequest }
                - { name: kernel.event_listener, event: kernel.controller_arguments } # no `method` at this tag
    
    opened by jjsty1e 2
  • Make EventDispatcher more extensible.

    Make EventDispatcher more extensible.

    By removing the check if $listeners has any listeners, we could reliably extend the protected callListeners(). This would open the door for implementing the PSR-14 Psr\EventDispatcher\ListenerProviderInterface.

    opened by rbroen 1
  • Add missing doc blocks to the EventDispatcherInterface interface

    Add missing doc blocks to the EventDispatcherInterface interface

    Add missing doc blocks to the EventDispatcherInterface interface.

    Necessary since the subclasses which are using this contract are using the * {@inheritdoc} tag.

    opened by nicoorfi 1
  • Update EventSubscriberInterface.php

    Update EventSubscriberInterface.php

    EventSubscriberInterface::getSubscribedEvents should not be static - every call to this method seems to be instance-based.

    Problem: Development of a "dynamic registration"-Subscriber based on Constructor-Params impossible.

    Solution: Change call-type of getSubscribedEvents to instance.

    Side-Effects: None known - all calls are instance-calls.

    opened by thehe 1
Releases(v6.1.9)
  • v6.1.9(Dec 28, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v6.1.8...v6.1.9)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v6.0.17(Dec 28, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v6.0.16...v6.0.17)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v5.4.17(Dec 28, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v5.4.16...v5.4.17)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v6.2.2(Dec 16, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v6.2.1...v6.2.2)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v6.2.0(Nov 30, 2022)

  • v6.2.0-RC1(Nov 25, 2022)

  • v6.2.0-BETA3(Nov 19, 2022)

  • v6.2.0-BETA1(Oct 24, 2022)

  • v4.4.44(Jul 29, 2022)

  • v6.1.0(May 27, 2022)

  • v6.0.9(May 27, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v6.0.8...v6.0.9)

    • bug #46262 Fix removing listeners when using first-class callable syntax (javer)
    Source code(tar.gz)
    Source code(zip)
  • v5.4.9(May 27, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v5.4.8...v5.4.9)

    • bug #46262 Fix removing listeners when using first-class callable syntax (javer)
    Source code(tar.gz)
    Source code(zip)
  • v4.4.42(May 27, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v4.4.41...v4.4.42)

    • bug #46262 Fix removing listeners when using first-class callable syntax (javer)
    Source code(tar.gz)
    Source code(zip)
  • v6.1.0-RC1(May 14, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v6.1.0-BETA2...v6.1.0-RC1)

    • bug #46262 Fix removing listeners when using first-class callable syntax (javer)
    Source code(tar.gz)
    Source code(zip)
  • v6.1.0-BETA2(Apr 27, 2022)

  • v6.1.0-BETA1(Apr 15, 2022)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v6.0.7...v6.1.0-BETA1)

    • feature #45377 Bump minimum version of PHP to 8.1 (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v6.0.3(Jan 28, 2022)

  • v5.4.3(Jan 28, 2022)

  • v5.3.14(Jan 28, 2022)

  • v4.4.37(Jan 28, 2022)

  • v6.0.2(Dec 29, 2021)

    Changelog (https://github.com/symfony/event-dispatcher/compare/v6.0.1...v6.0.2)

    • bug #44745 Restore return type to covariant IteratorAggregate implementations (derrabus)
    Source code(tar.gz)
    Source code(zip)
  • v6.0.1(Dec 9, 2021)

  • v6.0.0(Nov 29, 2021)

  • v5.4.0(Nov 29, 2021)

  • v6.0.0-RC1(Nov 24, 2021)

  • v5.4.0-RC1(Nov 24, 2021)

  • v5.3.11(Nov 22, 2021)

  • v4.4.34(Nov 22, 2021)

  • v6.0.0-BETA3(Nov 18, 2021)

  • v5.4.0-BETA3(Nov 18, 2021)

A powerful command line application framework for PHP. It's an extensible, flexible component, You can build your command-based application in seconds!

CLIFramework CLIFramework is a command-line application framework, for building flexiable, simple command-line applications. Commands and Subcommands

Yo-An Lin 428 Dec 13, 2022
ReactPHP Shell, based on the Symfony Console component.

Pecan Event-driven, non-blocking shell for ReactPHP. Pecan (/pɪˈkɑːn/) provides a non-blocking alternative to the shell provided in the Symfony Consol

Michael Crumm 43 Sep 4, 2022
Authentication component from Zend Framework

zend-authentication Repository abandoned 2019-12-31 This repository has moved to laminas/laminas-authentication. The Zend\Authentication component pro

Zend Framework 43 Jun 13, 2021
The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. It provides a better dump() function that you can use instead of var_dump().

VarDumper Component The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. It provides a better dump() function t

Symfony 7.1k Dec 23, 2022
[READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework)

Illuminate Database The Illuminate Database component is a full database toolkit for PHP, providing an expressive query builder, ActiveRecord style OR

The Laravel Components 2.5k Dec 27, 2022
Serializer component from Zend Framework

zend-serializer Repository abandoned 2019-12-31 This repository has moved to laminas/laminas-serializer. zend-serializer provides an adapter-based int

Zend Framework 45 Jan 13, 2022
The DependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.

DependencyInjection Component The DependencyInjection component allows you to standardize and centralize the way objects are constructed in your appli

Symfony 3.9k Dec 28, 2022
ServiceManager component from Zend Framework

zend-servicemanager Repository abandoned 2019-12-31 This repository has moved to laminas/laminas-servicemanager. Master: Develop: The Service Locator

Zend Framework 192 Nov 21, 2022
A PHP component to convert HTML into a plain text format

html2text html2text is a very simple script that uses DOM methods to convert HTML into a format similar to what would be rendered by a browser - perfe

Jevon Wright 423 Dec 29, 2022
Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

Route This package is compliant with PSR-1, PSR-2, PSR-4, PSR-7, PSR-11 and PSR-15. If you notice compliance oversights, please send a patch via pull

The League of Extraordinary Packages 608 Dec 30, 2022
The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.

HttpClient component The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously. Resources Documentati

Symfony 1.7k Jan 6, 2023
The Mailer component helps sending emails

Mailer Component The Mailer component helps sending emails. Getting Started $ composer require symfony/mailer use Symfony\Component\Mailer\Transport;

Symfony 1.1k Jan 7, 2023
The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. It provides a better dump() function that you can use instead of var_dump().

VarDumper Component The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. It provides a better dump() function t

Symfony 7.1k Jan 1, 2023
The Asset component manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files.

Asset Component The Asset component manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files. Res

Symfony 2.9k Jan 5, 2023
The HttpFoundation component defines an object-oriented layer for the HTTP specification.

HttpFoundation Component The HttpFoundation component defines an object-oriented layer for the HTTP specification. Resources Documentation Contributin

Symfony 8.3k Dec 29, 2022
Clockwork - php dev tools in your browser - server-side component

Clockwork is a development tool for PHP available right in your browser. Clockwork gives you an insight into your application runtime - including requ

its 4.8k Dec 29, 2022
Examples of using each Illuminate component in non-Laravel applications

Torch - Using Laravel's Illuminate Components Independently Torch is a project to provide instructions and examples for using Illuminate components as

Matt Stauffer 1.7k Dec 30, 2022
A component-centric backend communication layer for Alpine.js

A component-centric backend communication layer for Alpine.js. Installation Install using the following command: composer require radio/radio Install

Radio.js 75 Dec 20, 2021
Laravel Livewire full page component routing.

Laravel Livewire Routes Laravel Livewire full page component routing. This package allows you to specify routes directly inside your full page Livewir

null 22 Oct 6, 2022
A lightweight full-stack component layer that doesn't dictate your front-end framework

Airwire A lightweight full-stack component layer that doesn't dictate your front-end framework Demo Introduction Airwire is a thin layer between your

ARCHTECH 199 Nov 23, 2022