Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/*
4
 * This file is part of the Symfony package.
5
 *
6
 * (c) Fabien Potencier <fabien@symfony.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
 
12
namespace Symfony\Component\HttpKernel\Bundle;
13
 
14
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
17
 
18
/**
19
 * BundleInterface.
20
 *
21
 * @author Fabien Potencier <fabien@symfony.com>
22
 */
23
interface BundleInterface extends ContainerAwareInterface
24
{
25
    /**
26
     * Boots the Bundle.
27
     */
28
    public function boot();
29
 
30
    /**
31
     * Shutdowns the Bundle.
32
     */
33
    public function shutdown();
34
 
35
    /**
36
     * Builds the bundle.
37
     *
38
     * It is only ever called once when the cache is empty.
39
     */
40
    public function build(ContainerBuilder $container);
41
 
42
    /**
43
     * Returns the container extension that should be implicitly loaded.
44
     */
45
    public function getContainerExtension(): ?ExtensionInterface;
46
 
47
    /**
48
     * Returns the bundle name (the class short name).
49
     */
50
    public function getName(): string;
51
 
52
    /**
53
     * Gets the Bundle namespace.
54
     */
55
    public function getNamespace(): string;
56
 
57
    /**
58
     * Gets the Bundle directory path.
59
     *
60
     * The path should always be returned as a Unix path (with /).
61
     */
62
    public function getPath(): string;
63
}