SymfonyTemplate   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRecipe() 0 4 1
A getExtraContent() 0 10 1
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Initializer\Template;
9
10
/**
11
 * Generate a Symfony deployer configuration.
12
 *
13
 * @author Anton Medvedev <[email protected]>
14
 * @codeCoverageIgnore
15
 */
16
class SymfonyTemplate extends FrameworkTemplate
17
{
18
    protected function getRecipe()
19
    {
20
        return 'symfony';
21
    }
22
23
    /**
24
     * {@inheritDoc}
25
     */
26
    protected function getExtraContent()
27
    {
28
        return <<<PHP
29
30
// Migrate database before symlink new release.
31
32
before('deploy:symlink', 'database:migrate');
33
34
PHP;
35
    }
36
}
37