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\Application\Service\LogOut;
use BenGorUser\User\Application\Command\LogOut\LogOutUserHandler;
use Ddd\Application\Service\ApplicationService;
/**
* User logout service class.
* @author Beñat Espiña <[email protected]>
* @author Gorka Laucirica <[email protected]>
class LogOutUserService implements ApplicationService
{
* The command handler.
* @var LogOutUserHandler
private $handler;
* Constructor.
* @param LogOutUserHandler $aHandler The command handler
public function __construct(LogOutUserHandler $aHandler)
$this->handler = $aHandler;
}
* {@inheritdoc}
public function execute($request = null)
$this->handler->__invoke($request);