So I've just integrated Pimple into a project and the situation I'm in now is that I have a file at:
/application/config/pimple.php
With 400+ of these in it:
/* Instantiate new Class */
$this->container['Some_class'] = $this->container->factory(function ($c)
{
require_once "application/classes/some/class.php";
return new Class();
});
My question is: Is this the norm? Should I be concerned about this? Is there a better way of doing it?