Skip to content

Instantly share code, notes, and snippets.

@assertchris
Created January 10, 2014 13:25
Show Gist options
  • Select an option

  • Save assertchris/8351855 to your computer and use it in GitHub Desktop.

Select an option

Save assertchris/8351855 to your computer and use it in GitHub Desktop.
App::bind('Full\Interface\Namespace', 'Full\Implementation\Namespace');
class Foo
{
public function __construct(Full\Interface\Namespace $bar)
{
$this->bar = $bar; // instance of Full\Implementation\Namespace
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment