Passed
Push — master ( dcf026...963312 )
by Caen
03:39 queued 14s
created

Application::getCachedPackagesPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Foundation;
6
7
/**
8
 * @property self $app
9
 */
10
class Application extends \LaravelZero\Framework\Application
11
{
12
    protected $storagePath = 'app/storage';
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    protected function registerBaseBindings(): void
18
    {
19
        // Laravel Zero disables auto-discovery, but we want to use it,
20
        // so we'll call the grandparent's method instead of the parent's.
21
        \Illuminate\Foundation\Application::registerBaseBindings();
22
    }
23
24
    /**
25
     * Get the path to the cached packages.php file.
26
     */
27
    public function getCachedPackagesPath(): string
28
    {
29
        // Since we have a custom path for the cache directory, we need to return it here.
30
        return 'app/storage/framework/cache/packages.php';
31
    }
32
}
33