This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component
Fabien Potencier 8b62df7247 changed the EventDispatcher and Event interfaces
The three notification methods do not return the Event instance anymore.

notify() does not return anything
notifyUntil() returns the returned value of the event that has processed the event
filter() returns the filtered value

Upgrading your listeners:
Listeners for notify() and filter() events: nothing to change
Listeners for notifyUntil() events:

Before:

    $event->setReturnValue('foo');
    return true;

After:

    $event->setProcessed();
    return 'foo';

If you notify events, the processing also need to be changed:

For filter() notifications: the filtered value is now available as
the returned value of the filter() method.

For notifyUntil() notifications:

Before:

    $event = $dispatcher->notifyUntil($event);
    if ($event->isProcessed()) {
        $ret = $event->getReturnValue();

        // do something with $ret
    }

After:

    $ret = $dispatcher->notifyUntil($event);
    if ($event->isProcessed()) {
        // do something with $ret
    }
2011-01-26 08:41:59 +01:00
..
BrowserKit renamed Symfony\Components to Symfony\Component 2010-08-20 23:09:55 +02:00
Console normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
CssSelector Fixed visibility of PHPUnit setUp and tearDown methods. 2010-12-06 15:52:23 +01:00
DependencyInjection adds helper method to normalize keys 2011-01-25 15:59:51 +01:00
DomCrawler Add support for base tag for Link and Form, Fixes #9422 2011-01-14 17:26:24 +01:00
EventDispatcher changed the EventDispatcher and Event interfaces 2011-01-26 08:41:59 +01:00
Finder normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
Form [Form] Implemented FormFactory::buildDefault() to ease the use of the new CSRF implementation without the DIC 2011-01-25 11:31:04 +01:00
HttpFoundation [HttpFoundation] added test for processed array in sub-requests 2011-01-24 18:22:48 +01:00
HttpKernel changed the EventDispatcher and Event interfaces 2011-01-26 08:41:59 +01:00
Routing refactored bundle management 2011-01-20 18:42:47 +01:00
Security fixes else -> } else 2011-01-19 07:20:23 +01:00
Serializer [Serializer] Added initial version of the Serializer component 2011-01-23 12:34:47 +01:00
Templating refactored bundle management 2011-01-20 18:42:47 +01:00
Translation [Translation] Added CsvFileLoader to support csv translation resources. 2011-01-08 15:24:01 +01:00
Validator [Validator] Added namespace prefix support for XML and YAML loaders 2011-01-19 16:25:50 +01:00
Yaml normalized license messages in PHP files 2011-01-18 08:07:46 +01:00