Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ab32f1

Browse files
committed
[SecurityBundle] Rename FirewallContext#getContext()
1 parent4459598 commit9ab32f1

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

‎src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ public function getConfig()
4141
return$this->config;
4242
}
4343

44+
/**
45+
* @deprecated since version 3.2, will be removed in 4.0. Use {@link getListeners()} instead.
46+
*/
4447
publicfunctiongetContext()
48+
{
49+
return$this->getListeners();
50+
}
51+
52+
publicfunctiongetListeners()
4553
{
4654
returnarray($this->listeners,$this->exceptionListener);
4755
}

‎src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getListeners(Request $request)
4646
returnarray(array(),null);
4747
}
4848

49-
return$context->getContext();
49+
return$context->getListeners();
5050
}
5151

5252
/**

‎src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallContextTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testGetters()
3939

4040
$context =newFirewallContext($listeners,$exceptionListener,$config);
4141

42-
$this->assertEquals(array($listeners,$exceptionListener),$context->getContext());
42+
$this->assertEquals(array($listeners,$exceptionListener),$context->getListeners());
4343
$this->assertEquals($config,$context->getConfig());
4444
}
4545
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp