Skip to content

Commit 3da1889

Browse files
committed
deprecated manager prop -> prop
1 parent 3b88eeb commit 3da1889

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/StorageConnectManager.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ public function adapter($driver)
5353
{
5454
$this->verifyDriver($driver);
5555

56-
return $this->app->make("sts.storage-connect.adapter.$driver");
56+
return $this->container->make("sts.storage-connect.adapter.$driver");
5757
}
5858

5959
/**
6060
* @return string
6161
*/
6262
public function getDefaultDriver()
6363
{
64-
return $this->app['config']['storage-connect.default'];
64+
return $this->container['config']['storage-connect.default'];
6565
}
6666

6767
/**
@@ -72,10 +72,10 @@ public function getDefaultDriver()
7272
public function isSupportedDriver($driver)
7373
{
7474
return in_array($driver, $this->registered)
75-
&& in_array($driver, $this->app['config']['storage-connect.enabled'])
76-
&& is_array($this->app['config']["services.$driver"])
77-
&& $this->app['config']["services.$driver.client_id"] != null
78-
&& $this->app['config']["services.$driver.client_secret"] != null;
75+
&& in_array($driver, $this->container['config']['storage-connect.enabled'])
76+
&& is_array($this->container['config']["services.$driver"])
77+
&& $this->container['config']["services.$driver.client_id"] != null
78+
&& $this->container['config']["services.$driver.client_secret"] != null;
7979
}
8080

8181
/**
@@ -169,7 +169,7 @@ public function getState()
169169
*/
170170
public function finish($driver)
171171
{
172-
$props = (array) $this->app['request']->session()->pull('storage-connect');
172+
$props = (array) $this->container['request']->session()->pull('storage-connect');
173173

174174
$storage = Arr::get($props, 'custom') == true
175175
? $this->driver($driver)
@@ -189,7 +189,7 @@ public function redirectAfterConnect($redirectUrl = null)
189189
{
190190
return new RedirectResponse(
191191
$redirectUrl == null
192-
? $this->app['config']->get('storage-connect.redirect_after_connect')
192+
? $this->container['config']->get('storage-connect.redirect_after_connect')
193193
: $redirectUrl
194194
);
195195
}
@@ -203,11 +203,11 @@ public function appName()
203203
return $appName;
204204
}
205205

206-
if ($appName = $this->app['config']->get('storage-connect.app_name')) {
206+
if ($appName = $this->container['config']->get('storage-connect.app_name')) {
207207
return $appName;
208208
}
209209

210-
return $this->app['config']->get('app.name');
210+
return $this->container['config']->get('app.name');
211211
}
212212

213213
/**
@@ -230,15 +230,15 @@ public function __call($method, $parameters)
230230
*/
231231
public function register($name, $abstractClass, $providerClass)
232232
{
233-
$this->app->bind($abstractClass, function($app) use($abstractClass, $name) {
233+
$this->container->bind($abstractClass, function($app) use($abstractClass, $name) {
234234
return new $abstractClass($app['config']->get("services.$name"));
235235
});
236-
$this->app->alias($abstractClass, "sts.storage-connect.adapter.$name");
236+
$this->container->alias($abstractClass, "sts.storage-connect.adapter.$name");
237237

238-
$this->app->bind($providerClass, function($app) use($providerClass, $name) {
238+
$this->container->bind($providerClass, function($app) use($providerClass, $name) {
239239
return new $providerClass($app['config']->get("services.$name"));
240240
});
241-
$this->app->alias($providerClass, "sts.storage-connect.provider.$name");
241+
$this->container->alias($providerClass, "sts.storage-connect.provider.$name");
242242

243243
$this->registered[] = $name;
244244
}

0 commit comments

Comments
 (0)