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
{% extends 'knp_menu.html.twig' %} | |
{% block list %} | |
{% if item.hasChildren and options.depth is not sameas(0) and item.displayChildren %} | |
{% import 'knp_menu.html.twig' as knp_menu %} | |
{% if item.level > 0 %} | |
{% set listAttributes = listAttributes|merge({'class': (listAttributes.class|default('') ~ ' left-submenu')|trim}) %} | |
{% else %} | |
{% set listAttributes = listAttributes|merge({'class': (listAttributes.class|default('') ~ ' off-canvas-list')|trim}) %} | |
{% endif %} |
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 | |
namespace Prezent\Translatable\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Prezent\Translatable\Entity\AbstractTranslation; | |
/** | |
* @ORM\MappedSuperClass | |
*/ |
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
#!/bin/bash | |
# Start daemon, using a syslog file descriptor as logfile | |
# This causes the phing.php passthru() to hang | |
./daemon.php >(logger -t daemon.php) | |
# This will work fine from phing.php | |
# ./daemon.php out.log |
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 | |
/** | |
* @group bar | |
*/ | |
class BarTest extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @dataProvider spit | |
*/ |