ecfectus/manager

A simple driver based manager trait to use multiple drivers for a set of functionality

dev-master 2016-10-04 19:10 UTC

This package is not auto-updated.

Last update: 2024-11-13 21:06:17 UTC


README

Build Status

A simple driver based manager trait to use multiple "drivers" for a set of functionality.

Obviously inspired and mostly ported from the Laravel framework, this trait allows you to define multiple "drivers" that all implement an interface defined by the manager class.

Whats slightly different is the functionality is wrapped up as a trait and not a class that must be extended, which offers more flexibility.

On top of that it validates the instances returned, you must define at least one interface the drivers implement, if they dont an exception will be thrown.