Overview

Namespaces

  • Minion
    • Service
    • Twig

Classes

  • Minion\Application
  • Minion\Console
  • Minion\Controller
  • Minion\Service\ServiceConfig
  • Minion\Service\ServiceProvider
  • Minion\Twig\AssetExtension
  • Minion\Twig\MiscExtension
  • Minion\Twig\TwigExtensionTagServiceProvider
  • Minion\Twig\UrlExtension
  • Minion\Utils

Interfaces

  • Minion\ControllerInterface
  • Minion\Service\ServiceConfigInterface
  • Minion\Service\ServiceProviderInterface
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Minion package.
 5:  * For the full copyright and license information, please view the LICENSE
 6:  * file that was distributed with this source code.
 7:  *
 8:  * @license MIT License
 9:  */
10: 
11: namespace Minion\Service;
12: 
13: use Silex\Application as SilexApp;
14: 
15: /**
16:  * Class ServiceProvider
17:  * Basic Service provider class
18:  *
19:  * @package Minion
20:  * @author Damian SzczerbiƄski <dszczer@gmail.com>
21:  */
22: abstract class ServiceProvider implements ServiceProviderInterface
23: {
24:     /** @var ServiceConfig ServiceConfig object */
25:     protected $serviceConfig;
26: 
27:     /**
28:      * {@inheritdoc}
29:      */
30:     public function setServiceConfig(ServiceConfig $service) {
31:         $this->serviceConfig = $service;
32:     }
33: 
34:     /**
35:      * {@inheritdoc}
36:      */
37:     public function getServiceConfig() {
38:         return $this->serviceConfig;
39:     }
40: 
41:     /**
42:      * {@inheritdoc}
43:      */
44:     abstract public function register(SilexApp $app);
45: 
46:     /**
47:      * {@inheritdoc}
48:      */
49:     abstract public function boot(SilexApp $app);
50: }
API documentation generated by ApiGen