Cleanup api controllers

This commit is contained in:
Graham Campbell
2015-01-01 20:13:53 +00:00
parent 064cc099ec
commit e17b0d5f60
4 changed files with 62 additions and 14 deletions

View File

@@ -11,8 +11,20 @@ class ComponentController extends Controller
{
use ControllerTrait;
/**
* The component repository instance.
*
* @var \CachetHQ\Cachet\Repositories\Component\ComponentRepository
*/
protected $component;
/**
* Create a new component controller instance.
*
* @param \CachetHQ\Cachet\Repositories\Component\ComponentRepository $component
*
* @return void
*/
public function __construct(ComponentRepository $component)
{
$this->component = $component;