Commit graph

11 commits

Author SHA1 Message Date
Josh Sherman
48c5289060 Moved files and added namespaces 2014-09-27 17:57:07 -04:00
Josh Sherman
8a1ac4fb47 Worked through basic authentication 2014-09-27 16:40:41 -04:00
Josh Sherman
718f8d64bb Working on basic auth and dropped log class
I personally haven't used it in years so I'm just getting to the mindset that
it's not a very useful piece of functionality. Nginx can easily log all of your
requests and any time I need to troubleshoot SQL (not all that often) I do it
directly without using the class.
2014-09-27 15:37:41 -04:00
Josh Sherman
bdb4ca8ff0 Renamed secure flag to https 2014-09-27 14:02:52 -04:00
Josh Sherman
53d8ab1137 Added powered by pickles header 2014-09-27 14:01:04 -04:00
Josh Sherman
20aff31b94 Moved validate logic into resource
I couldn't find a single scenario where I was using the Validate class in my
site level code. Dropped the overhead of calling a static class method multiple
times on a page by moving the logic in the Resource class. Also changed the
response to always return the errors as parameter => array. This allows a
developer to choose if they want to display one error or all of the errors.
2014-09-27 12:06:33 -04:00
Josh Sherman
50ea072929 Added password_hash filter
Defaulting to PASSWORD_DEFAULT, will expand to other options if the need arises.
2014-09-27 11:47:29 -04:00
Josh Sherman
141ac693cb Dropped response class
Seems pointless to have class that had a single method that basically contained
all of the shit that the resource already had and knew. Moved respond() method
to the response class and moved all of the response validation logic and errors
from the router to the response class.
2014-09-27 11:25:45 -04:00
Josh Sherman
a749c80d93 Added variable filtering and validation
Validation logic was existing but it was reworked to abstract out checking for
required fields initially and then sanity checks after the fact. Filters are
applied before validation but after checking existence. No support for _PUT and
_DELETE at the moment as those do not exist as super globals natively in PHP.
2014-09-27 08:13:05 -04:00
Josh Sherman
39d5b8d40b Cleaned up unit tests
Wanted to get back to the point that the tests were running and not erroring.
2014-09-25 23:11:29 -04:00
Josh Sherman
69b14085b4 Module -> Resource
Dropping those dated naming conventions
2014-09-25 20:57:05 -04:00
Renamed from src/classes/Module.php (Browse further)