stupidlysimple/php

Every core classes should have prepare(), start(), and end() methods

farizluqman opened this issue · 1 comments

Every Core classes should have

  • private prepare() - this is where all initialization, configuration loading and such are being done
  • start() - this is where the execution of what the class should do. called often statically, e.g: Core\Router::start() telling that to start the router.
  • end() - this is where destroying an object / cleaning have been done, should be called statically

Forwarded to version 1.0.0