PHP Class Sonata\InvoiceBundle\Controller\InvoiceController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
ファイルを表示 Open project: sonata-project/ecommerce

Public Methods

Method Description
downloadAction ( string $reference )
indexAction ( )
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.
getInvoiceManager ( ) : Sonata\Component\Invoice\InvoiceManagerInterface
getInvoiceTransformer ( ) : InvoiceTransformer
getOrderManager ( ) : 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 ( string $reference )
$reference string

getInvoiceManager() protected method

protected getInvoiceManager ( ) : Sonata\Component\Invoice\InvoiceManagerInterface
return Sonata\Component\Invoice\InvoiceManagerInterface

getInvoiceTransformer() protected method

protected getInvoiceTransformer ( ) : InvoiceTransformer
return Sonata\Component\Transformer\InvoiceTransformer

getOrderManager() protected method

protected getOrderManager ( ) : OrderManagerInterface
return OrderManagerInterface

indexAction() public method

public indexAction ( )

viewAction() public method

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