This file contains hidden or 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\Stoffer\Scissors; | |
| class Line | |
| { | |
| private $input; | |
| public function __construct($input) | |
| { |
This file contains hidden or 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 spec\Wj\Stoffer; | |
| use PhpSpec\ObjectBehavior; | |
| use Prophecy\Argument; | |
| use Wj\Stoffer\Scissors\ScissorsInterface; | |
| class KernelSpec extends ObjectBehavior | |
| { |
This file contains hidden or 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\Stoffer; | |
| use Wj\Stoffer\Event\LineEvent; | |
| use Wj\Stoffer\Scissors\ScissorsInterface; | |
| use Symfony\Component\EventDispatcher\EventDispatcherInterface; | |
| /** | |
| * @author Wouter J <wouter@wouterj.nl> |
This file contains hidden or 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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <!-- ... --> | |
| </head> | |
| <body class="page"> | |
| <!-- ... --> | |
| {% block hero_unit_wrapper -%} | |
| <section class="page__sub-header article--featured grid grid--center"> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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()); |