Completed
Push — master ( 98a062...441031 )
by Ryan
10:10
created

ConfigureFileCacheStore   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php namespace Anomaly\Streams\Platform\Application\Command;
2
3
use Anomaly\Streams\Platform\Application\Application;
4
use Illuminate\Contracts\Config\Repository;
5
6
/**
7
 * Class ConfigureFileCacheStore
8
 *
9
 * @link   http://pyrocms.com/
10
 * @author PyroCMS, Inc. <[email protected]>
11
 * @author Ryan Thompson <[email protected]>
12
 */
13
class ConfigureFileCacheStore
14
{
15
16
    /**
17
     * Handle the command.
18
     *
19
     * @param Repository  $config
20
     * @param Application $application
21
     */
22
    public function handle(Repository $config, Application $application)
23
    {
24
        $config->set('cache.stores.file.path', $application->getStoragePath('cache'));
25
    }
26
}
27