Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 1464
Zeile 56... Zeile 56...
56
     */
56
     */
57
    public function store($name = null)
57
    public function store($name = null)
58
    {
58
    {
59
        $name = $name ?: $this->getDefaultDriver();
59
        $name = $name ?: $this->getDefaultDriver();
Zeile 60... Zeile 60...
60
 
60
 
61
        return $this->stores[$name] = $this->get($name);
61
        return $this->stores[$name] ??= $this->resolve($name);
Zeile 62... Zeile 62...
62
    }
62
    }
63
 
63
 
64
    /**
64
    /**
Zeile 71... Zeile 71...
71
    {
71
    {
72
        return $this->store($driver);
72
        return $this->store($driver);
73
    }
73
    }
Zeile 74... Zeile 74...
74
 
74
 
75
    /**
-
 
76
     * Attempt to get the store from the local cache.
-
 
77
     *
-
 
78
     * @param  string  $name
-
 
79
     * @return \Illuminate\Contracts\Cache\Repository
-
 
80
     */
-
 
81
    protected function get($name)
-
 
82
    {
-
 
83
        return $this->stores[$name] ?? $this->resolve($name);
-
 
84
    }
-
 
85
 
-
 
86
    /**
75
    /**
87
     * Resolve the given store.
76
     * Resolve the given store.
88
     *
77
     *
89
     * @param  string  $name
78
     * @param  string  $name
90
     * @return \Illuminate\Contracts\Cache\Repository
79
     * @return \Illuminate\Contracts\Cache\Repository