krakphp / lava

Micro framework with massive potential
1 stars 0 forks source link

Relative Paths #41

Open ragboyjr opened 7 years ago

ragboyjr commented 7 years ago

Offer a better way for defining path groups and relative paths.

So, maybe allow $app->addPath('config', '{base}/config') and even if the base path changes or is redefined, the config path will still be valid.

ragboyjr commented 7 years ago

In addition, Paths should also be managed in a separate class and with an interface. Might even make a new repo for the paths.

ragboyjr commented 7 years ago

Maybe define paths like

$app->addPath('config', 'base', '/config')
// or
$app->addPath('config', ['base', '/config'])