blob: d2f1666b75293787d96c563c41fb230aa0ace0a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
namespace Kanboard\ServiceProvider;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Kanboard\Core\Plugin\Loader;
/**
* Plugin Provider
*
* @package serviceProvider
* @author Frederic Guillot
*/
class PluginProvider implements ServiceProviderInterface
{
/**
* Register providers
*
* @access public
* @param \Pimple\Container $container
* @return \Pimple\Container
*/
public function register(Container $container)
{
$container['pluginLoader'] = new Loader($container);
$container['pluginLoader']->scan();
return $container;
}
}
|