nathggns / Scaffold

Lightweight PHP API Framework
Other
8 stars 2 forks source link

Service class #57

Closed nathggns closed 11 years ago

nathggns commented 11 years ago

For future-compatibility purposes, we should never manually initiate a class, instead, we should always use the Service class. However, if you attempt to create a class for a service that hasn't manually been registered, you will get an exception.

Instead, I think it should make a class that refers to the service name you passed, using 'new'.

nathggns commented 11 years ago

This is replaced by pull #72