Skip to content

Instantly share code, notes, and snippets.

@bdunogier
Created March 13, 2014 10:35
Show Gist options
  • Save bdunogier/9525931 to your computer and use it in GitHub Desktop.
Save bdunogier/9525931 to your computer and use it in GitHub Desktop.
<?php
namespace My;
class Controller
{
/**
* @var \My\Service
*/
private $myService;
public function __construct( Service $myService )
{
$this->myService = $myService;
}
public function trucAction()
{
$this->myService->doStuff();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment