for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sylius\ShopApiPlugin\Request;
use Sylius\ShopApiPlugin\Command\PickupCart;
use Symfony\Component\HttpFoundation\Request;
final class PickupCartRequest
{
/**
* @var string
*/
private $token;
private $channel;
* @param Request $request
public function __construct(Request $request)
$this->token = $request->attributes->get('token');
$this->channel = $request->request->get('channel');
}
* @return PickupCart
public function getCommand()
return new PickupCart($this->token, $this->channel);