|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @todo Change bootstrap to routing. |
| 4 | + * Alter config to including routing config |
| 5 | + * |
| 6 | + * @todo Question, does a Exception with a code of 404 have a header of 404? |
| 7 | + * if so remove try catch |
| 8 | + * |
| 9 | + * @todo Check in View::Render that template exists |
| 10 | + * |
| 11 | + * @todo Put Connection creds into config.php |
| 12 | + * |
| 13 | + * @todo typo in creds |
| 14 | + * @todo put DB::Connection into a try catch and catch PDOException |
| 15 | + * |
| 16 | + * @todo Refactor query builder so that query statements are not exposed |
| 17 | + * EG QueryBuilder::where() from repository |
| 18 | + * Possibly have a interface that just exposes the find*, insert, insertOrUpdate and |
| 19 | + * update methods |
| 20 | + * |
| 21 | + * Haven't checked Helper or Manager yet! |
| 22 | + * |
| 23 | + * @todo Fix the failing 404 acceptance tests |
| 24 | + * vendor/bin/codecept run acceptance -g page-not-found |
| 25 | + * it is failing due to not running /public/404.html |
| 26 | + * |
| 27 | + * |
| 28 | + * @todo Add abstraction layer for repositories to allow controllers to pull out |
| 29 | + * repositories from a factory |
| 30 | + * EG: |
| 31 | + * $this->getDoctrine()->getRepository(\App\Entity\Status::class)->findAll() |
| 32 | + * $this->repostioryFactory()->make(\App\Entity\Status::class)->findAll() |
| 33 | + * |
| 34 | + * $this->getDB()->getRepository(\App\Entity\Invoice::class)->findAll(); |
| 35 | + * |
| 36 | + * $this->repositoryLoader->getStatus()->findAll(); |
| 37 | + * |
| 38 | + * @todo Add abstraction layer for managers to allow controller to pull out |
| 39 | + * managers from a factory |
| 40 | + * $this->getDB()->getManager(\App\Entity\Status::class)->save($status); |
| 41 | + * |
| 42 | + * |
| 43 | + * |
| 44 | + */ |
0 commit comments