wdalmut / frankie-modular
Frankie Modules
dev-master
2017-07-16 16:29 UTC
Requires
- acclimate/container: ~2
- psr/container: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.2
- wdalmut/frankie: dev-master
This package is not auto-updated.
Last update: 2024-11-10 03:31:08 UTC
README
The base frankie module system
$container = new CompositeContainer();
$modules = new Loader($container);
// add modules
$modules->add(new Corley\Module\FrameworkModule());
$loader->getContainer()->get("event_manager");
Create a module
It is just a class that implements Corley\Modular\Module\ModuleInterface
class Framework implements ModuleInterface { public function getContainer() { return /* Psr\Container\ContainerInterface instance */ } }