-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed deprecated setDefaultOptions methods
- Loading branch information
Showing
6 changed files
with
13 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
namespace Symfony\Component\Form; | ||
|
||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | ||
|
||
/** | ||
* @author Bernhard Schussek <[email protected]> | ||
|
@@ -43,16 +42,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function setDefaultOptions(OptionsResolverInterface $resolver) | ||
{ | ||
$this->configureOptions($resolver); | ||
} | ||
|
||
/** | ||
* Configures the options for this type. | ||
* | ||
* @param OptionsResolver $resolver The resolver for the options. | ||
*/ | ||
public function configureOptions(OptionsResolver $resolver) | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
namespace Symfony\Component\Form; | ||
|
||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | ||
|
||
/** | ||
* @author Bernhard Schussek <[email protected]> | ||
|
@@ -43,16 +42,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function setDefaultOptions(OptionsResolverInterface $resolver) | ||
{ | ||
$this->configureOptions($resolver); | ||
} | ||
|
||
/** | ||
* Configures the options for this type. | ||
* | ||
* @param OptionsResolver $resolver The resolver for the options. | ||
*/ | ||
public function configureOptions(OptionsResolver $resolver) | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
namespace Symfony\Component\Form; | ||
|
||
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
|
||
/** | ||
* @author Bernhard Schussek <[email protected]> | ||
|
@@ -60,15 +60,12 @@ public function buildView(FormView $view, FormInterface $form, array $options); | |
public function finishView(FormView $view, FormInterface $form, array $options); | ||
|
||
/** | ||
* Overrides the default options from the extended type. | ||
* Configures the options for this type. | ||
* | ||
* @param OptionsResolverInterface $resolver The resolver for the options. | ||
* @param OptionsResolver $resolver The resolver for the options. | ||
* | ||
* @deprecated Deprecated since Symfony 2.7, to be removed in Symfony 3.0. | ||
* Use the method configureOptions instead. This method will be | ||
* added to the FormTypeExtensionInterface with Symfony 3.0 | ||
*/ | ||
public function setDefaultOptions(OptionsResolverInterface $resolver); | ||
public function configureOptions(OptionsResolver $resolver); | ||
|
||
/** | ||
* Returns the name of the type being extended. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
namespace Symfony\Component\Form; | ||
|
||
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
|
||
/** | ||
* @author Bernhard Schussek <[email protected]> | ||
|
@@ -69,15 +69,11 @@ public function buildView(FormView $view, FormInterface $form, array $options); | |
public function finishView(FormView $view, FormInterface $form, array $options); | ||
|
||
/** | ||
* Sets the default options for this type. | ||
* Configures the options for this type. | ||
* | ||
* @param OptionsResolverInterface $resolver The resolver for the options. | ||
* | ||
* @deprecated Deprecated since Symfony 2.7, to be renamed in Symfony 3.0. | ||
* Use the method configureOptions instead. This method will be | ||
* added to the FormTypeInterface with Symfony 3.0. | ||
* @param OptionsResolver $resolver The resolver for the options. | ||
*/ | ||
public function setDefaultOptions(OptionsResolverInterface $resolver); | ||
public function configureOptions(OptionsResolver $resolver); | ||
|
||
/** | ||
* Returns the name of the parent type. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters