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
[~/code]$ git clone https://github.com/TheFootballSocialClub/FSCHateoasBundle.git Hateoas | |
Cloning into 'Hateoas'... | |
remote: Counting objects: 1487, done. | |
remote: Compressing objects: 100% (655/655), done. | |
remote: Total 1487 (delta 837), reused 1351 (delta 711) | |
Receiving objects: 100% (1487/1487), 186.06 KiB | 203 KiB/s, done. | |
Resolving deltas: 100% (837/837), done. | |
[~/code]$ cd Hateoas | |
[~/code/Hateoas]$ composer install --dev [master] | |
Loading composer repositories with package information |
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
[12:05][brensch@Baldur-Renschs-MacBook-Pro:~/code/www-halo](master)$ sudo vagrant provision | |
Password: | |
[default] Running provisioner: Vagrant::Provisioners::Puppet... | |
[default] Running Puppet with /tmp/vagrant-puppet/manifests/ecom.pp... | |
notice: /Stage[main]/Hautelook/Host[memcache03]/ip: ip changed '10.0.200.31' to '127.0.0.1' | |
notice: /Stage[main]/Hautelook/File[ca-bundle.crt]/content: content changed '{md5}661bdf31600c25dd28e1a69c6991c476' to '{md5}c4290b9deb70d0bef2f88b67fc68c8ec' | |
notice: /Stage[main]/Hautelook/Host[memcache04]/ip: ip changed '10.0.200.31' to '127.0.0.1' |
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 Hautelook\ApiBundle\Tests; | |
use PHPUnit_Framework_TestListener; | |
use PHPUnit_Framework_Test; | |
use PHPUnit_Framework_TestSuite; | |
use PHPUnit_Framework_AssertionFailedError; | |
use Exception; |
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 Acme\MyBundle\Serializer\Handler; | |
use JMS\Serializer\Handler\SubscribingHandlerInterface; | |
use JMS\Serializer\EventDispatcher\Event; | |
use JMS\Serializer\GraphNavigator; | |
use JMS\Serializer\XmlSerializationVisitor; | |
use JMS\Serializer\GenericSerializationVisitor; |
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\Validator\Constraints\Email; | |
use Symfony\Component\Validator\Constraints\All; | |
// This is reduced to the bare minimum. Missing Namespace and other imports | |
class DemoController extends Controller | |
{ | |
function testAction() | |
{ |
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 Ibms\AppBundle\Form\EventListener; | |
use Doctrine\ORM\QueryBuilder; | |
use Ibms\SupplierBundle\Entity\Supplier; | |
use Ibms\SupplierBundle\Entity\SupplierManager; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
use Symfony\Component\Form\FormFactoryInterface; |
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 BR\PHPUnitTestListeners; | |
use PHPUnit_Framework_TestListener; | |
use PHPUnit_Framework_Test; | |
use PHPUnit_Framework_TestSuite; | |
use PHPUnit_Framework_AssertionFailedError; | |
use Exception; |
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
$router = $this->get('router'); | |
$route = $router->match("/api/search/test"); | |
print_r($route); |
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
> Running command "phpunit --coverage-clover '/tmp/php-code-coverageMkj99j'"... | |
> | |
> | |
> | |
> [Symfony\Component\Process\Exception\ProcessFailedException] | |
> The command "phpunit --coverage-clover '/tmp/php-code-coverageMkj99j'" failed. | |
> | |
> Output: | |
> ================ | |
> PHPUnit 3.7.22 by Sebastian Bergmann. |
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 | |
$elements->filter( | |
function($elem) use ($target) { | |
return $elem->getId() == $target; | |
} | |
); |