for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorUser package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BenGorUser\CarlosBuenosvinosDddBridge\Domain\Model;
use BenGorUser\User\Domain\Model\Event\UserEvent as BaseUserEvent;
use BenGorUser\User\Domain\Model\User as BaseUser;
use Ddd\Domain\DomainEventPublisher;
/**
* User domain class.
* @author Beñat Espiña <[email protected]>
class User extends BaseUser
{
* {@inheritdoc}
protected function publish(BaseUserEvent $anEvent)
DomainEventPublisher::instance()->publish(
new UserEvent($anEvent)
);
}