Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
Application
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 registerBaseBindings
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCachedPackagesPath
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Hyde\Foundation;
6
7/**
8 * @property self $app
9 */
10class 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}