Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 515 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 515 Bytes

Frankie Modular

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 */
    }
}