I think uploading packs is more or less working. I nutted out a few bugs in a lot...
[rock.divinelegy.git] / Controllers / PackTestController.php
1 <?php
2
3 namespace Controllers;
4
5 use Controllers\IDivineController;
6 use DataAccess\StepMania\IPackRepository;
7 use DataAccess\StepMania\ISimfileRepository;
8
9 class PackTestController implements IDivineController
10 {
11 private $_packRepository;
12
13 public function __construct(
14 IPackRepository $repository
15 ) {
16 $this->_packRepository = $repository;
17 }
18
19 public function indexAction() {
20 $pack = $this->_packRepository->findById(10);
21
22 echo '<pre>';
23 print_r($pack);
24 echo '</pre>';
25 }
26 }