This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% form_theme form 'AcmeBundle:Default:designFormDesignOptionsTemplate.html.twig' %} | |
<fieldset> | |
<legend>Options</legend> | |
{{ form_errors(form.designOptions) }} | |
{{ form_widget(form.designOptions) }} | |
</fieldset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Acme\DV2Bundle\Model\CreditCard: | |
properties: | |
creditCardNumber: | |
- NotBlank: { groups: [flow_checkoutForm_step2]} | |
- MinLength: {limit: 15, groups: [flow_checkoutForm_step2]} | |
- MaxLength: {limit: 16, groups: [flow_checkoutForm_step2]} | |
creditCardCVV: | |
- NotBlank: { groups: [flow_checkoutForm_step2]} | |
- Regex: { pattern: "/^\d{3,4}$/", message: "Invalid CVV code", groups: [flow_checkoutForm_step2] } | |
getters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DV2Bundle\Tests\Model; | |
use Acme\DV2Bundle\Model\CreditCard; | |
class CreditCardTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function testMod10() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DV2Bundle\Model; | |
use Acme\DV2Bundle\Exception\UnsupportedCreditCardTypeException; | |
use Acme\DV2Bundle\Exception\UnknownCreditCardTypeException; | |
/** | |
* Acme\DV2Bundle\Entity\CreditCard | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hautelook\ApiBundle\Entity; | |
/** | |
* Hautelook\MainBundle\Entity\HalResource | |
* This interface should be implemented by all entities that are used in a Hal enabled JSON response. | |
* It standardizes the way to specify the resource rel and the links that should be added to the entities. | |
* | |
* @author Baldur Rensch <[email protected]> |
NewerOlder