wdalmut/frankie-modular

Frankie Modules

Maintainers

Package info

github.com/wdalmut/frankie-modular

Issues

pkg:composer/wdalmut/frankie-modular

Statistics

Installs: 80

Dependents: 11

Suggesters: 0

Stars: 0

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

This package is not auto-updated.

Last update: 2026-03-01 09:47:00 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 */
    }
}