File: D:/HostingSpaces/SBogers10/topswtw.komma.pro/app/KommaApp/Shop/Submenu.php
<?php
/**
* Created by PhpStorm.
* User: mike
* Date: 20/01/15
* Time: 15:39
*/
namespace KommaApp\Shop;
use KommaApp\Shop\Categories\Category;
use KommaApp\Shop\Categories\CategoryRepository;
class Submenu
{
protected $categoryRepository;
public function __construct()
{
$this->categoryRepository = new CategoryRepository(new Category());
}
function getTree()
{
return $this->categoryRepository->getRootCategories();
}
}