First draft for plugins system

This commit is contained in:
Frederic Guillot
2015-09-13 14:07:56 -04:00
parent c405f99fc8
commit a6a00a0040
31 changed files with 626 additions and 237 deletions

31
app/Core/PluginBase.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
namespace Core;
/**
* Plugin Base class
*
* @package core
* @author Frederic Guillot
*/
abstract class PluginBase extends Base
{
/**
* Method called for each request
*
* @abstract
* @access public
*/
abstract public function initialize();
/**
* Returns all classes that needs to be stored in the DI container
*
* @access public
* @return array
*/
public function getClasses()
{
return array();
}
}