Completed
Push — 2.0 ( 6cd6ae...d9081a )
by Rob
11s
created

FilterExtension::getFilters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the `liip/LiipImagineBundle` project.
5
 *
6
 * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Liip\ImagineBundle\Templating;
13
14
class FilterExtension extends \Twig_Extension
15
{
16
    use FilterTrait;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getFilters()
22
    {
23
        return [
24
            new \Twig_SimpleFilter('imagine_filter', [$this, 'filter']),
25
        ];
26
    }
27
}
28