diff --git a/app/controllers/CategoryController.php b/app/controllers/CategoryController.php index c9119d93fc..6b1d7a4e44 100644 --- a/app/controllers/CategoryController.php +++ b/app/controllers/CategoryController.php @@ -10,8 +10,17 @@ use Firefly\Storage\Category\CategoryRepositoryInterface as CRI; */ class CategoryController extends BaseController { - public function __construct() + protected $_repository; + protected $_category; + + /** + * @param CRI $repository + * @param CI $category + */ + public function __construct(CRI $repository, CI $category) { + $this->_repository = $repository; + $this->_category = $category; View::share('title', 'Categories'); View::share('mainTitleIcon', 'fa-bar-chart'); }