Skip to content

Instantly share code, notes, and snippets.

@m4nuC

m4nuC/routes.php Secret

Last active August 29, 2015 14:02
Show Gist options
  • Save m4nuC/bead34ef5b294be3816f to your computer and use it in GitHub Desktop.
Save m4nuC/bead34ef5b294be3816f to your computer and use it in GitHub Desktop.
<?php
class StubEventListener {
public function __construct(SomeInterface $i) {}
public function f() {}
}
class SomeClass{
public function __construct(NonExistantInterface)t{}
}
App::bind('SomeInterface', 'SomeClass');
Event::listen('test.event', 'StubEventListener@f');
Event::fire('test.event', []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment