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
<?xml version="1.0" encoding="UTF-8" ?> | |
<container xmlns="http://symfony.com/schema/dic/services"> | |
<parameters> | |
<parameter key="wj_rst.typer.class">Wj\RstExtension\EventListener\RstTyper</parameter> | |
</parameters> | |
<services> | |
<service id="wj_rst.typer" class="%wj_rst.typer.class%"> | |
<tag name="stoffer.event_subscriber" /> |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<container xmlns="http://symfony.com/schema/dic/services"> | |
<parameters> | |
<parameter key="wj_rst.linter.code_shorthand.class">Wj\RstExtension\Linter\CodeShortHand</parameter> | |
<parameter key="wj_rst.linter.heading_level.class">Wj\RstExtension\Linter\HeadingLevel</parameter> | |
<parameter key="wj_rst.linter.md_markup.class">Wj\RstExtension\Linter\MdMarkup</parameter> | |
</parameters> | |
<services> |
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 | |
// ... | |
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToStringTransformer; | |
use Acme\DemoBundle\Entity\Post; | |
public function indexAction() | |
{ | |
$post = new Post; | |
$builder = $this->createFormBuilder($post); | |
$form = $builder |
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 | |
class PostListController extends Controller | |
{ | |
private $viewModel; | |
public function __construct() | |
{ | |
$this->viewModel = $this->get('view_model.twig'); | |
$this->on('data.post_list_served', array($this, 'listServed')); |
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 Wj\ForumBundle\Document; | |
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCR; | |
use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface; | |
/** | |
* @PHPCR\Document(referenceable=true) | |
*/ |
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 | |
$this->capsule = $this->prophet->prophesize('Illuminate\Database\Capsule\Manager'); | |
new EloquentInitializer($this->capsule->reveal()); |
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
Acme\ForumBundle\Document\Topic: | |
property: | |
title: | |
provider: [property, {slugify: true}] | |
exists_action: throw | |
not_exists_action: create | |
method: | |
getDate: | |
provider: datetime | |
exists_action: use |
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 | |
use Symfony\Component\Config\FileLocator; | |
use Symfony\Component\Config\Loader\LoaderResolver; | |
use Symfony\Component\DependencyInjection\Loader; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
abstract class ContainerTestCase extends \PHPUnit_Framework_TestCase | |
{ | |
protected $container; |
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 | |
// src/Acme/DemoBundle/Exception/AcmeDemoException.php | |
namespace Acme\DemoBundle\Exception; | |
/** | |
* Special interface for AcmeDemoBundle exceptions | |
*/ | |
interface AcmeDemoException | |
{ |
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 | |
class M{function t($̀,$́){foreach(@$this->l[$̀]?:[]as$̃)$̃($́);}function a($̀,$́,$̃){$̂=&$this->l[$̀];while(@$̂[$̃])$̃.='a';$̂[$̃]=$́;krsort($̂,1);}} |
OlderNewer