- version 3.6
Check those constraints:
$this->anything()
| <?php | |
| /** | |
| * The problem | |
| * ----------- | |
| * People start to build Symfony2 Bundles which need a database. | |
| * Instead of having ORM-only Bundles and ODM-only Bundles, | |
| * people try to make Bundles more generic, for obvious reasons. | |
| * | |
| * A proposition |
| <div id="breadcrumbs"> | |
| {% for breadcrumb in breadcrumbs %} | |
| {% if not loop.last %} | |
| {{ breadcrumb | raw }} {{ breadcrumbs.separator | raw }} | |
| {% else %} | |
| <strong>{{ breadcrumb.label }}</strong> | |
| {% endif %} | |
| {% endfor %} | |
| </div> |
| <?php | |
| class Tag | |
| { | |
| public function normalizeName($name) | |
| { | |
| $normal = trim($name); | |
| $normal = strtolower($normal); | |
| return $normal; |
| <?php | |
| /** | |
| * @mongodb:Document | |
| */ | |
| class Band | |
| { | |
| /** | |
| * @mongodb:Field(type="string") | |
| * @var string |
| Parameters: | |
| forum.repository.topic.class | |
| forum.controller.topic.class | |
| forum.form.topic.class | |
| Serices: | |
| forum.repository.topic | |
| forum.controller.topic |
| <?php | |
| namespace Security\Authentication; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface; | |
| class AjaxFailureHandler implements AuthenticationFailureHandlerInterface |
| <?php | |
| use Liip\FunctionalTestBundle\Test\WebTestCase; | |
| use Symfony\Component\HttpKernel\Profiler\Profiler; | |
| use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | |
| use Symfony\Component\Security\Core\User\UserInterface; | |
| /** | |
| * @group functional | |
| */ |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| {% pricingSet "packable_product" %} | |
| {% element "packaging_cost" %} | |
| {% element "net_value" %} | |
| {% element "net_value_with_packaging_cost" %} | |
| {% element "tax_amount" %} | |
| {% element "unit_price_with_tax" %} | |
| {% endpricingset %} | |
| {% pricingSet "cart_item" %} | |
| {% element "total_discount" %} |