HexMakina / LeMarchand

Basic PSR11 container build for kadro
MIT License
1 stars 0 forks source link

Production API #1

Closed HexMakina closed 1 year ago

HexMakina commented 3 years ago

what happens when get($string)

  1. isset in the configuration array ? returns conf[$string];

  2. starts with 'settings' ? getSettings($string)

  3. starts with 'Controllers\' or 'Models\' ? cascade($string) and getInstance($class_name)

  4. ends with 'Interface' looks in wire array and getInstance($class_name)

  5. ends with 'Class' returns cascade($string)