Skip to content

Commit 2b99f17

Browse files
authored
remove leftover method_exists checks (#56821)
1 parent 45e5ba2 commit 2b99f17

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/Illuminate/Auth/AuthManager.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,11 @@ public function createSessionDriver($name, $config)
132132
// When using the remember me functionality of the authentication services we
133133
// will need to be set the encryption instance of the guard, which allows
134134
// secure, encrypted cookie values to get generated for those cookies.
135-
if (method_exists($guard, 'setCookieJar')) {
136-
$guard->setCookieJar($this->app['cookie']);
137-
}
135+
$guard->setCookieJar($this->app['cookie']);
138136

139-
if (method_exists($guard, 'setDispatcher')) {
140-
$guard->setDispatcher($this->app['events']);
141-
}
137+
$guard->setDispatcher($this->app['events']);
142138

143-
if (method_exists($guard, 'setRequest')) {
144-
$guard->setRequest($this->app->refresh('request', $guard, 'setRequest'));
145-
}
139+
$guard->setRequest($this->app->refresh('request', $guard, 'setRequest'));
146140

147141
if (isset($config['remember'])) {
148142
$guard->setRememberDuration($config['remember']);

0 commit comments

Comments
 (0)