This file contains 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 | |
/** | |
* @author Florent HAZARD <f.hazard@sowapps.com> | |
* @license https://opensource.org/licenses/MIT | |
*/ | |
use DateInterval; | |
use DateTime; | |
use DateTimeImmutable; | |
use DateTimeInterface; |
This file contains 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 | |
/** | |
* @author Florent HAZARD <f.hazard@sowapps.com> | |
* | |
* Paginate results from Doctrine QueryBuilder | |
*/ | |
namespace App\Core\Entity; | |
use ArrayIterator; |
This file contains 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
{% use "bootstrap_4_layout.html.twig" %} | |
{# Override form_widget_simple block to render bootstrap input-group with prepend and append #} | |
{% block form_widget_simple -%} | |
{%- if input_prepend is defined or input_append is defined -%} | |
<div class="input-group"> | |
{%- endif -%} | |
{%- if input_prepend is defined -%} | |
<div class="input-group-prepend"> | |
<span class="input-group-text" id="{{ form.vars.id ~ "_prepend" }}">{{ input_prepend | raw }}</span> |