Skip to content

Commit

Permalink
Merge branch '2.3' into 2.5
Browse files Browse the repository at this point in the history
* 2.3:
  Configure firewall's kernel exception listener with configured entry point or a default entry point
  PSR-2 fixes
  [DependencyInjection] make paths relative to __DIR__ in the generated container
  Fixed the syntax of a composer.json file
  Fixed the symfony/config version constraint
  Tweaked the password-compat version constraint
  Docblock fixes
  define constant only if it wasn't defined before
  Fix incorrect spanish translation
  Fixed typos

Conflicts:
	composer.json
	src/Symfony/Bridge/Twig/TwigEngine.php
	src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php
	src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php
	src/Symfony/Bundle/FrameworkBundle/composer.json
	src/Symfony/Component/Console/Descriptor/MarkdownDescriptor.php
	src/Symfony/Component/Console/Helper/TableHelper.php
	src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php
	src/Symfony/Component/Debug/ErrorHandler.php
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
	src/Symfony/Component/Finder/Tests/Iterator/RecursiveDirectoryIteratorTest.php
	src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php
	src/Symfony/Component/HttpFoundation/Response.php
	src/Symfony/Component/HttpFoundation/StreamedResponse.php
	src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php
	src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php
	src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php
	src/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.php
	src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php
	src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php
	src/Symfony/Component/Process/Process.php
	src/Symfony/Component/Process/Tests/AbstractProcessTest.php
	src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php
	src/Symfony/Component/Routing/Tests/Fixtures/validpattern.php
	src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php
	src/Symfony/Component/Security/composer.json
	src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
	src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
	src/Symfony/Component/Stopwatch/StopwatchEvent.php
	src/Symfony/Component/Stopwatch/StopwatchPeriod.php
	src/Symfony/Component/Templating/PhpEngine.php
	src/Symfony/Component/Templating/TemplateReference.php
	src/Symfony/Component/Templating/TemplateReferenceInterface.php
	src/Symfony/Component/Translation/TranslatorInterface.php
	src/Symfony/Component/Validator/ConstraintViolation.php
	src/Symfony/Component/Validator/ExecutionContextInterface.php
	src/Symfony/Component/Validator/Mapping/ClassMetadata.php
	src/Symfony/Component/Validator/MetadataFactoryInterface.php
  • Loading branch information
fabpot committed Dec 2, 2014
2 parents 771a7db + a50c64c commit 806e292
Show file tree
Hide file tree
Showing 28 changed files with 102 additions and 101 deletions.
28 changes: 14 additions & 14 deletions Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected function configure()
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
*
* @return null|int null or 0 if everything went fine, or an error code
* @return null|int null or 0 if everything went fine, or an error code
*
* @throws \LogicException When this abstract method is not implemented
* @see setCode()
Expand Down Expand Up @@ -202,7 +202,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
*
* @return int The command exit code
* @return int The command exit code
*
* @throws \Exception
*
Expand Down Expand Up @@ -287,7 +287,7 @@ public function setCode($code)
*
* This method is not part of public API and should not be used directly.
*
* @param bool $mergeArgs Whether to merge or not the Application definition arguments to Command definition arguments
* @param bool $mergeArgs Whether to merge or not the Application definition arguments to Command definition arguments
*/
public function mergeApplicationDefinition($mergeArgs = true)
{
Expand Down Expand Up @@ -361,10 +361,10 @@ public function getNativeDefinition()
/**
* Adds an argument.
*
* @param string $name The argument name
* @param int $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
* @param string $description A description text
* @param mixed $default The default value (for InputArgument::OPTIONAL mode only)
* @param string $name The argument name
* @param int $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
* @param string $description A description text
* @param mixed $default The default value (for InputArgument::OPTIONAL mode only)
*
* @return Command The current instance
*
Expand All @@ -380,11 +380,11 @@ public function addArgument($name, $mode = null, $description = '', $default = n
/**
* Adds an option.
*
* @param string $name The option name
* @param string $shortcut The shortcut (can be null)
* @param int $mode The option mode: One of the InputOption::VALUE_* constants
* @param string $description A description text
* @param mixed $default The default value (must be null for InputOption::VALUE_REQUIRED or InputOption::VALUE_NONE)
* @param string $name The option name
* @param string $shortcut The shortcut (can be null)
* @param int $mode The option mode: One of the InputOption::VALUE_* constants
* @param string $description A description text
* @param mixed $default The default value (must be null for InputOption::VALUE_REQUIRED or InputOption::VALUE_NONE)
*
* @return Command The current instance
*
Expand Down Expand Up @@ -513,7 +513,7 @@ public function getHelp()
* Returns the processed help for the command replacing the %command.name% and
* %command.full_name% patterns with the real values dynamically.
*
* @return string The processed help for the command
* @return string The processed help for the command
*/
public function getProcessedHelp()
{
Expand Down Expand Up @@ -618,7 +618,7 @@ public function asText()
/**
* Returns an XML representation of the command.
*
* @param bool $asDom Whether to return a DOM or an XML string
* @param bool $asDom Whether to return a DOM or an XML string
*
* @return string|\DOMDocument An XML string representing the command
*
Expand Down
2 changes: 1 addition & 1 deletion Descriptor/MarkdownDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function describeApplication(Application $application, array $options
$this->write("\n\n");
$this->write(implode("\n", array_map(function ($commandName) {
return '* '.$commandName;
} , $namespace['commands'])));
}, $namespace['commands'])));
}

foreach ($description->getCommands() as $command) {
Expand Down
2 changes: 1 addition & 1 deletion Event/ConsoleExceptionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function setException(\Exception $exception)
/**
* Gets the exit code.
*
* @return int The command exit code
* @return int The command exit code
*/
public function getExitCode()
{
Expand Down
4 changes: 2 additions & 2 deletions Event/ConsoleTerminateEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(Command $command, InputInterface $input, OutputInter
/**
* Sets the exit code.
*
* @param int $exitCode The command exit code
* @param int $exitCode The command exit code
*/
public function setExitCode($exitCode)
{
Expand All @@ -49,7 +49,7 @@ public function setExitCode($exitCode)
/**
* Gets the exit code.
*
* @return int The command exit code
* @return int The command exit code
*/
public function getExitCode()
{
Expand Down
8 changes: 4 additions & 4 deletions Formatter/OutputFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function escape($text)
/**
* Initializes console output formatter.
*
* @param bool $decorated Whether this formatter should actually decorate strings
* @param bool $decorated Whether this formatter should actually decorate strings
* @param OutputFormatterStyleInterface[] $styles Array of "name => FormatterStyle" instances
*
* @api
Expand All @@ -63,7 +63,7 @@ public function __construct($decorated = false, array $styles = array())
/**
* Sets the decorated flag.
*
* @param bool $decorated Whether to decorate the messages or not
* @param bool $decorated Whether to decorate the messages or not
*
* @api
*/
Expand All @@ -75,7 +75,7 @@ public function setDecorated($decorated)
/**
* Gets the decorated flag.
*
* @return bool true if the output will decorate messages, false otherwise
* @return bool true if the output will decorate messages, false otherwise
*
* @api
*/
Expand Down Expand Up @@ -194,7 +194,7 @@ public function getStyleStack()
*
* @param string $string
*
* @return OutputFormatterStyle|bool false if string is not format string
* @return OutputFormatterStyle|bool false if string is not format string
*/
private function createStyleFromString($string)
{
Expand Down
4 changes: 2 additions & 2 deletions Formatter/OutputFormatterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface OutputFormatterInterface
/**
* Sets the decorated flag.
*
* @param bool $decorated Whether to decorate the messages or not
* @param bool $decorated Whether to decorate the messages or not
*
* @api
*/
Expand All @@ -32,7 +32,7 @@ public function setDecorated($decorated);
/**
* Gets the decorated flag.
*
* @return bool true if the output will decorate messages, false otherwise
* @return bool true if the output will decorate messages, false otherwise
*
* @api
*/
Expand Down
2 changes: 1 addition & 1 deletion Formatter/OutputFormatterStyleStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function push(OutputFormatterStyleInterface $style)
*
* @return OutputFormatterStyleInterface
*
* @throws \InvalidArgumentException When style tags incorrectly nested
* @throws \InvalidArgumentException When style tags incorrectly nested
*/
public function pop(OutputFormatterStyleInterface $style = null)
{
Expand Down
22 changes: 11 additions & 11 deletions Helper/DialogHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class DialogHelper extends InputAwareHelper
* @param string|array $question The question to ask
* @param array $choices List of choices to pick from
* @param bool|string $default The default answer if the user enters nothing
* @param bool|int $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param bool|int $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param string $errorMessage Message which will be shown if invalid value from choice list would be picked
* @param bool $multiselect Select more than one value separated by comma
*
* @return int|string|array The selected value or values (the key of the choices array)
* @return int|string|array The selected value or values (the key of the choices array)
*
* @throws \InvalidArgumentException
*/
Expand Down Expand Up @@ -233,7 +233,7 @@ public function ask(OutputInterface $output, $question, $default = null, array $
* @param string|array $question The question to ask
* @param bool $default The default answer if the user enters nothing
*
* @return bool true if the user has confirmed, false otherwise
* @return bool true if the user has confirmed, false otherwise
*/
public function askConfirmation(OutputInterface $output, $question, $default = true)
{
Expand All @@ -256,7 +256,7 @@ public function askConfirmation(OutputInterface $output, $question, $default = t
* @param string|array $question The question
* @param bool $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
*
* @return string The answer
* @return string The answer
*
* @throws \RuntimeException In case the fallback is deactivated and the response can not be hidden
*/
Expand Down Expand Up @@ -361,7 +361,7 @@ public function askAndValidate(OutputInterface $output, $question, $validator, $
* @param int|false $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param bool $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
*
* @return string The response
* @return string The response
*
* @throws \Exception When any of the validators return an error
* @throws \RuntimeException In case the fallback is deactivated and the response can not be hidden
Expand Down Expand Up @@ -411,7 +411,7 @@ public function getName()
/**
* Return a valid Unix shell
*
* @return string|bool The valid shell name, false in case no valid shell is found
* @return string|bool The valid shell name, false in case no valid shell is found
*/
private function getShell()
{
Expand Down Expand Up @@ -449,12 +449,12 @@ private function hasSttyAvailable()
/**
* Validate an attempt
*
* @param callable $interviewer A callable that will ask for a question and return the result
* @param OutputInterface $output An Output instance
* @param callable $validator A PHP callback
* @param int|false $attempts Max number of times to ask before giving up ; false will ask infinitely
* @param callable $interviewer A callable that will ask for a question and return the result
* @param OutputInterface $output An Output instance
* @param callable $validator A PHP callback
* @param int|false $attempts Max number of times to ask before giving up ; false will ask infinitely
*
* @return string The validated response
* @return string The validated response
*
* @throws \Exception In case the max number of attempts has been reached and no valid response has been given
*/
Expand Down
2 changes: 1 addition & 1 deletion Helper/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getHelperSet()
*
* @param string $string The string to check its length
*
* @return int The length of the string
* @return int The length of the string
*/
public static function strlen($string)
{
Expand Down
2 changes: 1 addition & 1 deletion Helper/HelperSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function set(HelperInterface $helper, $alias = null)
*
* @param string $name The helper name
*
* @return bool true if the helper is defined, false otherwise
* @return bool true if the helper is defined, false otherwise
*/
public function has($name)
{
Expand Down
18 changes: 9 additions & 9 deletions Helper/ProgressHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ public function start(OutputInterface $output, $max = null)
/**
* Advances the progress output X steps.
*
* @param int $step Number of steps to advance
* @param bool $redraw Whether to redraw or not
* @param int $step Number of steps to advance
* @param bool $redraw Whether to redraw or not
*
* @throws \LogicException
*/
Expand All @@ -238,8 +238,8 @@ public function advance($step = 1, $redraw = false)
/**
* Sets the current progress.
*
* @param int $current The current progress
* @param bool $redraw Whether to redraw or not
* @param int $current The current progress
* @param bool $redraw Whether to redraw or not
*
* @throws \LogicException
*/
Expand Down Expand Up @@ -272,7 +272,7 @@ public function setCurrent($current, $redraw = false)
/**
* Outputs the current progress string.
*
* @param bool $finish Forces the end result
* @param bool $finish Forces the end result
*
* @throws \LogicException
*/
Expand Down Expand Up @@ -345,7 +345,7 @@ private function initialize()
/**
* Generates the array map of format variables to values.
*
* @param bool $finish Forces the end result
* @param bool $finish Forces the end result
*
* @return array Array of format vars and values
*/
Expand Down Expand Up @@ -403,7 +403,7 @@ private function generate($finish = false)
/**
* Converts seconds into human-readable format.
*
* @param int $secs Number of seconds
* @param int $secs Number of seconds
*
* @return string Time in readable format
*/
Expand All @@ -428,8 +428,8 @@ private function humaneTime($secs)
/**
* Overwrites a previous message to the output.
*
* @param OutputInterface $output An Output instance
* @param string $message The message
* @param OutputInterface $output An Output instance
* @param string $message The message
*/
private function overwrite(OutputInterface $output, $message)
{
Expand Down
2 changes: 1 addition & 1 deletion Helper/TableHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function setBorderFormat($borderFormat)
/**
* Sets cell padding type.
*
* @param int $padType STR_PAD_*
* @param int $padType STR_PAD_*
*
* @return TableHelper
*/
Expand Down
2 changes: 1 addition & 1 deletion Input/ArgvInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function getFirstArgument()
*
* @param string|array $values The value(s) to look for in the raw parameters (can be an array)
*
* @return bool true if the value is contained in the raw parameters
* @return bool true if the value is contained in the raw parameters
*/
public function hasParameterOption($values)
{
Expand Down
2 changes: 1 addition & 1 deletion Input/ArrayInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getFirstArgument()
*
* @param string|array $values The values to look for in the raw parameters (can be an array)
*
* @return bool true if the value is contained in the raw parameters
* @return bool true if the value is contained in the raw parameters
*/
public function hasParameterOption($values)
{
Expand Down
14 changes: 7 additions & 7 deletions Input/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function validate()
/**
* Checks if the input is interactive.
*
* @return bool Returns true if the input is interactive
* @return bool Returns true if the input is interactive
*/
public function isInteractive()
{
Expand All @@ -91,7 +91,7 @@ public function isInteractive()
/**
* Sets the input interactivity.
*
* @param bool $interactive If the input should be interactive
* @param bool $interactive If the input should be interactive
*/
public function setInteractive($interactive)
{
Expand Down Expand Up @@ -146,9 +146,9 @@ public function setArgument($name, $value)
/**
* Returns true if an InputArgument object exists by name or position.
*
* @param string|int $name The InputArgument name or position
* @param string|int $name The InputArgument name or position
*
* @return bool true if the InputArgument object exists, false otherwise
* @return bool true if the InputArgument object exists, false otherwise
*/
public function hasArgument($name)
{
Expand Down Expand Up @@ -186,8 +186,8 @@ public function getOption($name)
/**
* Sets an option value by name.
*
* @param string $name The option name
* @param string|bool $value The option value
* @param string $name The option name
* @param string|bool $value The option value
*
* @throws \InvalidArgumentException When option given doesn't exist
*/
Expand All @@ -205,7 +205,7 @@ public function setOption($name, $value)
*
* @param string $name The InputOption name
*
* @return bool true if the InputOption object exists, false otherwise
* @return bool true if the InputOption object exists, false otherwise
*/
public function hasOption($name)
{
Expand Down
Loading

0 comments on commit 806e292

Please sign in to comment.