for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Zed\Braintree\Communication\Controller;
use Spryker\Zed\Kernel\Communication\Controller\AbstractController;
* @method \SprykerEco\Zed\Braintree\Communication\BraintreeCommunicationFactory getFactory()
* @method \SprykerEco\Zed\Braintree\Persistence\BraintreeQueryContainerInterface getQueryContainer()
* @method \SprykerEco\Zed\Braintree\Business\BraintreeFacadeInterface getFacade()
* @method \SprykerEco\Zed\Braintree\Persistence\BraintreeRepositoryInterface getRepository()
class IndexController extends AbstractController
{
* @return array
public function indexAction()
$table = $this->getFactory()->createPaymentsTable();
return [
'payments' => $table->render(),
];
}
* @return \Symfony\Component\HttpFoundation\JsonResponse
public function tableAction()
return $this->jsonResponse($table->fetchData());