blob: 3965e0d2b7e04a9f0fb4e5aa7609dcf94f1cb0e3 (
plain) (
blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl\ResourceBundle\Transformer\Rule;
use Symfony\Component\Intl\ResourceBundle\Transformer\CompilationContextInterface;
use Symfony\Component\Intl\ResourceBundle\Transformer\StubbingContextInterface;
/**
* Contains instruction for compiling a resource bundle.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
interface TransformationRuleInterface
{
/**
* Returns the name of the compiled resource bundle.
*
* @return string The name of the bundle.
*/
public function getBundleName();
/**
* Runs instructions to be executed before compiling the sources of the
* resource bundle.
*
* @param CompilationContextInterface $context The contextual information of
* the compilation.
*
* @return string[] The source directories/files of the bundle.
*/
public function beforeCompile(CompilationContextInterface $context);
/**
* Runs instructions to be executed after compiling the sources of the
* resource bundle.
*
* @param CompilationContextInterface $context The contextual information of
* the compilation.
*/
public function afterCompile(CompilationContextInterface $context);
/**
* Runs instructions to be executed before creating the stub version of the
* resource bundle.
*
* @param StubbingContextInterface $context The contextual information of
* the compilation.
*
* @return mixed The data to include in the stub version.
*/
public function beforeCreateStub(StubbingContextInterface $context);
/**
* Runs instructions to be executed after creating the stub version of the
* resource bundle.
*
* @param StubbingContextInterface $context The contextual information of
* the compilation.
*/
public function afterCreateStub(StubbingContextInterface $context);
}
|