I hereby claim:
- I am pminnieur on github.
- I am pminnieur (https://keybase.io/pminnieur) on keybase.
- I have a public key whose fingerprint is 874D 6895 FCE7 B4C4 C9A8 8094 8F3E 7097 4B59 67F6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace App\Bundle\Broadway\CommandHandling; | |
use App\Bundle\Exception\ValidationFailedException; | |
use Broadway\CommandHandling\CommandBusInterface; | |
use Broadway\CommandHandling\CommandHandlerInterface; | |
use Symfony\Component\Validator\Validator\ValidatorInterface; | |
class ValidatingCommandBus implements CommandBusInterface |
# ... | |
if Vagrant::Util::Platform.windows? | |
config.vm.provision :shell, path: "windows.sh" | |
else | |
config.vm.provision "ansible" do |ansible| | |
ansible.playbook = "ansible/playbook.yml" | |
end | |
end |
<?php | |
namespace App\Listener\Exception; | |
use App\Exception\ValidationFailedException; | |
use JMS\DiExtraBundle\Annotation as DI; | |
use Symfony\Component\Console\Event\ConsoleExceptionEvent; | |
use Symfony\Component\Console\Helper\Table; | |
use Symfony\Component\Console\Output\ConsoleOutputInterface; | |
use Symfony\Component\HttpFoundation\JsonResponse; |
<?php | |
abstract class AbstractService | |
{ | |
public function __construct(SomeService $someService) | |
{ | |
// ... | |
} | |
} |
<?php | |
$mock = \Mockery::mock('FQCN'); | |
$mock | |
->shouldReceive('foo') | |
->with(\Mockery::mustBe('bar')) | |
->andReturn('bar') | |
->once(); |
(function($, window, document, undefined) { | |
$(document).ready(function() { | |
// hier der code ... | |
}); | |
})(jQuery, window, document); |
<?php | |
abstract class AbstractService | |
{ | |
public function __construct($required1, $required2) | |
{ | |
// ... | |
} | |
} |
<?php | |
namespace Acme\DemoBundle\Model; | |
use Symfony\Component\Validator\ExecutionContextInterface; | |
class MyModel | |
{ | |
public $myProperty; | |
<?php | |
class Inception extends Exception | |
{ | |
static private $timesThrown = 0; | |
public function __construct($message = null, $code = 0) | |
{ | |
if (++static::$timesThrown <= 3) { | |
throw new Inception($message, $code); |