Fix some docblocks.
This commit is contained in:
parent
628271db2f
commit
df89373e62
@ -14,6 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\Command;
|
||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
||||
use Symfony\Component\Console\Exception\LogicException;
|
||||
use Symfony\Component\Console\Helper\Table;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\StyleInterface;
|
||||
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
|
||||
|
||||
@ -26,6 +27,9 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
|
||||
*/
|
||||
abstract class AbstractConfigCommand extends ContainerDebugCommand
|
||||
{
|
||||
/**
|
||||
* @param OutputInterface|StyleInterface $output
|
||||
*/
|
||||
protected function listBundles($output)
|
||||
{
|
||||
$title = 'Available registered bundles with their extension alias if available';
|
||||
|
@ -190,6 +190,11 @@ class Cookie
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $dateValue
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
private static function parseDate($dateValue)
|
||||
{
|
||||
// trim single quotes around date if present
|
||||
@ -207,6 +212,8 @@ class Cookie
|
||||
if (false !== $date = date_create($dateValue, new \DateTimeZone('GMT'))) {
|
||||
return $date->format('U');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -111,8 +111,8 @@ class CookieJar
|
||||
/**
|
||||
* Updates the cookie jar from a response Set-Cookie headers.
|
||||
*
|
||||
* @param array $setCookies Set-Cookie headers from an HTTP response
|
||||
* @param string $uri The base URL
|
||||
* @param string[] $setCookies Set-Cookie headers from an HTTP response
|
||||
* @param string $uri The base URL
|
||||
*/
|
||||
public function updateFromSetCookie(array $setCookies, $uri = null)
|
||||
{
|
||||
|
@ -743,6 +743,11 @@ class Filesystem
|
||||
return 2 === \count($components) ? [$components[0], $components[1]] : [null, $components[0]];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param callable $func
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
private static function box($func)
|
||||
{
|
||||
self::$lastError = null;
|
||||
|
@ -217,7 +217,7 @@ class Process implements \IteratorAggregate
|
||||
* This is identical to run() except that an exception is thrown if the process
|
||||
* exits with a non-zero exit code.
|
||||
*
|
||||
* @return self
|
||||
* @return $this
|
||||
*
|
||||
* @throws RuntimeException if PHP was compiled with --enable-sigchild and the enhanced sigchild compatibility mode is not enabled
|
||||
* @throws ProcessFailedException if the process didn't terminate successfully
|
||||
@ -942,7 +942,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param string|array $commandline The command to execute
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommandLine($commandline)
|
||||
{
|
||||
@ -978,7 +978,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param int|float|null $timeout The timeout in seconds
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*
|
||||
* @throws InvalidArgumentException if the timeout is negative
|
||||
*/
|
||||
@ -996,7 +996,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param int|float|null $timeout The timeout in seconds
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*
|
||||
* @throws LogicException if the output is disabled
|
||||
* @throws InvalidArgumentException if the timeout is negative
|
||||
@ -1017,7 +1017,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param bool $tty True to enabled and false to disable
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*
|
||||
* @throws RuntimeException In case the TTY mode is not supported
|
||||
*/
|
||||
@ -1058,7 +1058,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param bool $bool
|
||||
*
|
||||
* @return self
|
||||
* @return $this
|
||||
*/
|
||||
public function setPty($bool)
|
||||
{
|
||||
@ -1098,7 +1098,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param string $cwd The new working directory
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*/
|
||||
public function setWorkingDirectory($cwd)
|
||||
{
|
||||
@ -1130,7 +1130,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param array $env The new environment variables
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*/
|
||||
public function setEnv(array $env)
|
||||
{
|
||||
@ -1161,7 +1161,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param string|int|float|bool|resource|\Traversable|null $input The content
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*
|
||||
* @throws LogicException In case the process is running
|
||||
*/
|
||||
@ -1195,7 +1195,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param array $options The new options
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*
|
||||
* @deprecated since version 3.3, to be removed in 4.0.
|
||||
*/
|
||||
@ -1229,7 +1229,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param bool $enhance
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*
|
||||
* @deprecated since version 3.3, to be removed in 4.0. Enhanced Windows compatibility will always be enabled.
|
||||
*/
|
||||
@ -1265,7 +1265,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param bool $enhance
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*
|
||||
* @deprecated since version 3.3, to be removed in 4.0.
|
||||
*/
|
||||
@ -1283,7 +1283,7 @@ class Process implements \IteratorAggregate
|
||||
*
|
||||
* @param bool $inheritEnv
|
||||
*
|
||||
* @return self The current Process instance
|
||||
* @return $this
|
||||
*/
|
||||
public function inheritEnvironmentVariables($inheritEnv = true)
|
||||
{
|
||||
|
@ -41,11 +41,11 @@ class LogoutUrlGenerator
|
||||
/**
|
||||
* Registers a firewall's LogoutListener, allowing its URL to be generated.
|
||||
*
|
||||
* @param string $key The firewall key
|
||||
* @param string $logoutPath The path that starts the logout process
|
||||
* @param string $csrfTokenId The ID of the CSRF token
|
||||
* @param string $csrfParameter The CSRF token parameter name
|
||||
* @param CsrfTokenManagerInterface|null $csrfTokenManager A CsrfTokenManagerInterface instance
|
||||
* @param string $key The firewall key
|
||||
* @param string $logoutPath The path that starts the logout process
|
||||
* @param string|null $csrfTokenId The ID of the CSRF token
|
||||
* @param string|null $csrfParameter The CSRF token parameter name
|
||||
* @param string|null $context The listener context
|
||||
*/
|
||||
public function registerListener($key, $logoutPath, $csrfTokenId, $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = null/*, string $context = null*/)
|
||||
{
|
||||
|
@ -63,6 +63,13 @@ class Registry
|
||||
return $matched;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SupportStrategyInterface $supportStrategy
|
||||
* @param object $subject
|
||||
* @param string|null $workflowName
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private function supports(Workflow $workflow, $supportStrategy, $subject, $workflowName)
|
||||
{
|
||||
if (null !== $workflowName && $workflowName !== $workflow->getName()) {
|
||||
|
Reference in New Issue
Block a user