PHP Class Sonata\OrderBundle\Controller\OrderController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
downloadAction ( unknown $reference )
indexAction ( ) : Response
viewAction ( string $reference ) : Response

Protected Methods

Method Description
checkAccess ( Sonata\Component\Customer\CustomerInterface $customer ) Checks that the current logged in user has access to given invoice.
getOrderManager ( ) : Sonata\Component\Order\OrderManagerInterface

Method Details

checkAccess() protected method

Checks that the current logged in user has access to given invoice.
protected checkAccess ( Sonata\Component\Customer\CustomerInterface $customer )
$customer Sonata\Component\Customer\CustomerInterface The linked customer

downloadAction() public method

public downloadAction ( unknown $reference )
$reference unknown

getOrderManager() protected method

protected getOrderManager ( ) : Sonata\Component\Order\OrderManagerInterface
return Sonata\Component\Order\OrderManagerInterface

indexAction() public method

public indexAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

viewAction() public method

public viewAction ( string $reference ) : Response
$reference string
return Symfony\Component\HttpFoundation\Response