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