From b7ed68ed281d18f2ad26b0061fde8509af9d2a14 Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Thu, 20 Oct 2016 12:48:26 +0200 Subject: [PATCH 1/3] [Console] Allow a SymfonyStyle instance to return option user input --- src/Symfony/Component/Console/Style/SymfonyStyle.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Symfony/Component/Console/Style/SymfonyStyle.php b/src/Symfony/Component/Console/Style/SymfonyStyle.php index b18d7c9a67cfb..c4b1ca95a76da 100644 --- a/src/Symfony/Component/Console/Style/SymfonyStyle.php +++ b/src/Symfony/Component/Console/Style/SymfonyStyle.php @@ -337,6 +337,16 @@ public function newLine($count = 1) $this->bufferedOutput->write(str_repeat("\n", $count)); } + /** + * @param string $name + * + * @return mixed + */ + public function getOption($name) + { + return $this->input->getOption($name); + } + /** * @return ProgressBar */ From f00f9a23fd155f9bc830bf6dc3b5e076f05d5378 Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Mon, 5 Dec 2016 09:32:06 +0100 Subject: [PATCH 2/3] [Form] added hasParent() method to Form --- src/Symfony/Component/Form/Form.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index c8acaf825fcc0..98c463b29539b 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -285,6 +285,16 @@ public function getParent() return $this->parent; } + /** + * Returns whether the form has a parent. + * + * @return bool + */ + public function hasParent() + { + return null !== $this->parent; + } + /** * {@inheritdoc} */ From 3939c554e6ef40bb9b9c390e677785db47e5995d Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Mon, 5 Dec 2016 09:40:16 +0100 Subject: [PATCH 3/3] Revert "[Console] Allow a SymfonyStyle instance to return option user input" This reverts commit b7ed68ed281d18f2ad26b0061fde8509af9d2a14. --- src/Symfony/Component/Console/Style/SymfonyStyle.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Symfony/Component/Console/Style/SymfonyStyle.php b/src/Symfony/Component/Console/Style/SymfonyStyle.php index c4b1ca95a76da..b18d7c9a67cfb 100644 --- a/src/Symfony/Component/Console/Style/SymfonyStyle.php +++ b/src/Symfony/Component/Console/Style/SymfonyStyle.php @@ -337,16 +337,6 @@ public function newLine($count = 1) $this->bufferedOutput->write(str_repeat("\n", $count)); } - /** - * @param string $name - * - * @return mixed - */ - public function getOption($name) - { - return $this->input->getOption($name); - } - /** * @return ProgressBar */