Completed
Push — master ( c7deb4...314746 )
by Beñat
09:20 queued 06:49
created

DownloadRoutesLoaderBuilder::definitionName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the BenGorFile package.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 * (c) Gorka Laucirica <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace BenGorFile\FileBundle\DependencyInjection\Compiler\Routing;
14
15
/**
16
 * Download routes loader builder.
17
 *
18
 * @author Beñat Espiña <[email protected]>
19
 */
20
class DownloadRoutesLoaderBuilder extends RoutesLoaderBuilder
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function definitionName()
26
    {
27
        return 'bengor.file_bundle.routing.download_routes_loader';
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function defaultUploadDir($file)
34
    {
35
        return sprintf('/%ss', $file);
36
    }
37
}
38