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/HttpKernel
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
..
Cache made all event listeners lazy loaded 2011-01-23 18:07:05 +01:00
Controller [HttpKernel] added some more unit tests 2010-11-02 18:38:11 +01:00
Exception fixed unit tests 2010-12-10 09:30:44 +01:00
Fixtures added a missing file for unit tests 2011-01-21 15:06:38 +01:00
Profiler [ProfilerStorage] Make write() returns a status (Boolean) 2011-01-19 07:38:46 +01:00
Security/Logout normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
ClassCollectionLoaderTest.php [HttpKernel] added the possibility to add non-namespaced classes to the compiled class cache 2011-01-16 11:32:14 +01:00
ClientTest.php renamed Symfony\Components to Symfony\Component 2010-08-20 23:09:55 +02:00
HttpKernelTest.php changed the EventDispatcher and Event interfaces 2011-01-26 08:41:59 +01:00
KernelTest.php added KernelInterface 2011-01-25 17:10:47 +01:00
Logger.php renamed Symfony\Components to Symfony\Component 2010-08-20 23:09:55 +02:00
ResponseListenerTest.php made all event listeners lazy loaded 2011-01-23 18:07:05 +01:00
TestHttpKernel.php [HttpKernel][FrameworkBundle] Rename BaseHttpKernel to HttpKernel 2010-12-09 09:38:13 +01:00