wdalmut/frankie-modular

Frankie Modules

dev-master 2017-07-16 16:29 UTC

This package is not auto-updated.

Last update: 2024-10-27 03:16:11 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 */
    }
}