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

ConfigureFileCacheStore::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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