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
{% form_theme form _self %} | |
{% block checkbox_widget -%} | |
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%} | |
{%- if 'checkbox-custom' in parent_label_class -%} | |
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' custom-control-input')|trim}) -%} | |
<div class="custom-control custom-checkbox{{ 'checkbox-inline' in parent_label_class ? ' custom-control-inline' }}"> | |
{{ block('checkbox_widget_base') }} | |
</div> | |
{%- else -%} |
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
ffmpeg -i 01\ -\ Green\ Beret\ Loading\ Theme.flac \ | |
-map 0:1 \ | |
-c:a:0 alac \ | |
01\ -\ Green\ Beret\ Loading\ Theme.m4a |
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
#include <windows.h> | |
#include <winternl.h> | |
#include <stdio.h> | |
#pragma comment(lib, "user32") | |
#pragma comment(lib, "gdi32") | |
typedef struct _LARGE_STRING { | |
ULONG Length; | |
ULONG MaximumLength:31; |
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 Acme\Context; | |
use Acme\MyApp\User; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Symfony2Extension\Context\KernelAwareInterface; | |
use Doctrine\ORM\EntityManager; | |
use HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken; | |
use Symfony\Component\HttpKernel\KernelInterface; |
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 Plusquam\Bundle\ContractBundle\Block; | |
use Sonata\BlockBundle\Block\BlockContextInterface; | |
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | |
use Symfony\Component\HttpFoundation\Response; | |
use Sonata\AdminBundle\Form\FormMapper; | |
use Sonata\AdminBundle\Validator\ErrorElement; |
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
@Configuration | |
public class ProjectionsConfiguration { | |
@Autowired | |
private EventHandlingConfiguration eventHandlingConfiguration; | |
@Autowired | |
private EventStorageEngine eventStorageEngine; | |
@PostConstruct | |
public void startTrackingProjections() throws ClassNotFoundException { |
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
@Configuration | |
public class ProjectionsConfiguration { | |
@Autowired | |
private EventHandlingConfiguration eventHandlingConfiguration; | |
@Autowired | |
private EventStorageEngine eventStorageEngine; | |
@PostConstruct | |
public void startTrackingProjections() throws ClassNotFoundException { |
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 AppBundle\Tests; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\Tools\SchemaTool; | |
use Doctrine\DBAL\Driver\PDOMysql\Driver as MySQLDriver; | |
class DoctrineMigrationTest extends WebTestCase | |
{ |
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
class SortableDirectoryIterator extends RecursiveDirectoryIterator | |
{ | |
/** | |
* \ArrayObject | |
*/ | |
private $dirArray; | |
public function __construct(string $path) | |
{ | |
parent::__construct($path); |
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 Marco Pivetta <[email protected]> | |
*/ | |
use Zend\ServiceManager\ServiceManager; | |
use Zend\Mvc\Service\ServiceManagerConfig; | |
use DoctrineORMModuleTest\Framework\TestCase; | |
use ContentTest\Util\ServiceManagerFactory; | |
use Zend\Loader\StandardAutoloader; |
NewerOlder