8000 [Security] improve some firewall config comments by xabbuh · Pull Request #20404 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
8000

[Security] improve some firewall config comments #20404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@
<argument /> <!-- provider -->
<argument /> <!-- context -->
<argument /> <!-- entry_point -->
<argument /> <!-- user_checker -->
<argument /> <!-- access_denied_handler -->
<argument /> <!-- access_denied_url -->
<argument /> <!-- user_checker -->
<argument type="collection" /> <!-- listeners -->
</service>

Expand Down
26 changes: 21 additions & 5 deletions src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ class FirewallConfig
private $userChecker;
private $listeners;

/**
* @param string $name
* @param string $requestMatcher
* @param bool $securityEnabled
* @param bool $stateless
* @param string|null $provider
* @param string|null $context
* @param string|null $entryPoint
* @param string|null $accessDeniedHandler
* @param string|null $accessDeniedUrl
* @param string|null $userChecker
* @param string[] $listeners
*/
public function __construct($name, $requestMatcher, $securityEnabled = true, $stateless = false, $provider = null, $context = null, $entryPoint = null, $accessDeniedHandler = null, $accessDeniedUrl = null, $userChecker = null, $listeners = array())
{
$this->name = $name;
Expand Down Expand Up @@ -72,23 +85,23 @@ public function isStateless()
}

/**
* @return string The provider service id
* @return string|null The provider service id
*/
public function getProvider()
{
return $this->provider;
}

/**
* @return string The context key
* @return string|null The context key (will be null if the firewall is stateless)
*/
public function getContext()
{
return $this->context;
}

/**
* @return string The entry_point service id
* @return string|null The entry_point service id if configured, null otherwise
*/
public function getEntryPoint()
{
Expand All @@ -104,20 +117,23 @@ public function getUserChecker()
}

/**
* @return string The access_denied_handler service id
* @return string|null The access_denied_handler service id if configured, null otherwise
*/
public function getAccessDeniedHandler()
{
return $this->accessDeniedHandler;
}

/**
* @return string|null The access_denied_handler URL if configured, null otherwise
*/
public function getAccessDeniedUrl()
{
return $this->accessDeniedUrl;
}

/**
* @return array An array of listener keys
* @return string[] An array of listener keys
*/
public function getListeners()
{
Expand Down
0