for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Knp\RadBundle\DomainEvent;
trait ProviderTrait
{
private $events = [];
public function popEvents()
$events = $this->events;
$this->events = [];
return $events;
}
public function raise($eventName, array $properties = array())
$this->events[] = new Event($eventName, $properties);