Sample User repository method that return all user names in an array:
/**
* Find user names
*
* @return array
*/
public function findAllNames()
<?php | |
namespace Atd\UserBundle\Listener; | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent, | |
Symfony\Component\Security\Core\Exception\AccessDeniedException, | |
Symfony\Component\HttpFoundation\Request, | |
Symfony\Component\HttpFoundation\RedirectResponse, | |
Symfony\Component\HttpFoundation\Session\Session, | |
Symfony\Component\Routing\Router; |
<form action="." method="post"> | |
<noscript>You must <a href="http://www.enable-javascript.com" target="_blank">enable JavaScript</a> in your web browser in order to pay via Stripe.</noscript> | |
<input | |
type="submit" | |
value="Pay with Card" | |
data-key="PUBLISHABLE STRIPE KEY" | |
data-amount="500" | |
data-currency="cad" | |
data-name="Example Company Inc" |