Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Fixed some deprecation elements
Browse files Browse the repository at this point in the history
* Also changed BehatBridge to BehatBridgeBundle to allow new bundle properties during major version
  • Loading branch information
mmoreram committed Jun 9, 2015
1 parent 3d67306 commit c1f57c1
Show file tree
Hide file tree
Showing 46 changed files with 299 additions and 203 deletions.
2 changes: 2 additions & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ public function registerBundles()
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {

$bundles[] = new Elcodi\Bundle\FixturesBoosterBundle\ElcodiFixturesBoosterBundle();
$bundles[] = new Elcodi\Bridge\BehatBridgeBundle\BehatBridgeBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
}
Expand Down
12 changes: 6 additions & 6 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ default:
- %paths.base%/features/store
contexts:
- Behat\MinkExtension\Context\MinkContext
- Elcodi\Bridge\BehatBridge\DoctrineContext
- Elcodi\Bridge\BehatBridge\Context
- Elcodi\Bridge\BehatBridgeBundle\DoctrineContext
- Elcodi\Bridge\BehatBridgeBundle\Context
- Elcodi\Store\CoreBundle\Behat\Context
- Elcodi\Store\ProductBundle\Behat\Context
- Elcodi\Store\CartBundle\Behat\Context
Expand All @@ -38,17 +38,17 @@ default:
- %paths.base%/features/admin
contexts:
- Behat\MinkExtension\Context\MinkContext
- Elcodi\Bridge\BehatBridge\DoctrineContext
- Elcodi\Bridge\BehatBridge\Context
- Elcodi\Bridge\BehatBridgeBundle\DoctrineContext
- Elcodi\Bridge\BehatBridgeBundle\Context
- Elcodi\Admin\CoreBundle\Behat\Context

workflow:
paths:
- %paths.base%/features/workflow
contexts:
- Behat\MinkExtension\Context\MinkContext
- Elcodi\Bridge\BehatBridge\DoctrineContext
- Elcodi\Bridge\BehatBridge\Context
- Elcodi\Bridge\BehatBridgeBundle\DoctrineContext
- Elcodi\Bridge\BehatBridgeBundle\Context
- Elcodi\Store\CoreBundle\Behat\Context
- Elcodi\Store\ProductBundle\Behat\Context
- Elcodi\Store\CartBundle\Behat\Context
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

"ocramius/proxy-manager": "^1.0",
"doctrine/orm": "^2.5",
"doctrine/dbal": "^2.5",
"doctrine/common": "^2.5",
"doctrine/doctrine-bundle": "^1.2",
"doctrine/annotations": "^1.2",
Expand Down
2 changes: 2 additions & 0 deletions features/store/cart.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ Feature: Store cart
Then I should be on "/cart"
And the response should not contain a "empty-cart" test attribute

@now
Scenario: See the cart checkout without being logged in
Given I am on "/cart/product/10/add"
When I go to "/cart/address"
And I should be on "/login"

@now
Scenario: See the cart checkout being logged in
Given I am logged as "customer@customer.com" - "1234"
When I go to "/cart/product/10/add"
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/AttributeBundle/Form/Type/AttributeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;

Expand All @@ -31,13 +31,11 @@ class AttributeType extends AbstractType
use FactoryTrait;

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
9 changes: 4 additions & 5 deletions src/Elcodi/Admin/BannerBundle/Form/Type/BannerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;
Expand Down Expand Up @@ -57,13 +58,11 @@ public function __construct($imageNamespace, $bannerZoneNamespace)
}

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/BannerBundle/Form/Type/BannerZoneType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;

Expand Down Expand Up @@ -57,13 +57,11 @@ public function __construct($languageNamespace, $bannerNamespace)
}

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
2 changes: 1 addition & 1 deletion src/Elcodi/Admin/CoreBundle/Behat/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace Elcodi\Admin\CoreBundle\Behat;

use Elcodi\Bridge\BehatBridge\abstracts\AbstractElcodiContext;
use Elcodi\Bridge\BehatBridgeBundle\Abstracts\AbstractElcodiContext;

/**
* Class Context
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/CouponBundle/Form/Type/CouponType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;
use Elcodi\Component\Coupon\ElcodiCouponTypes;
Expand Down Expand Up @@ -49,13 +49,11 @@ public function __construct($ruleNamespace)
}

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/CurrencyBundle/Form/Type/CurrencyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;

Expand All @@ -31,13 +31,11 @@ class CurrencyType extends AbstractType
use FactoryTrait;

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
8 changes: 5 additions & 3 deletions src/Elcodi/Admin/CurrencyBundle/Form/Type/MoneyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface;
use Elcodi\Component\Currency\Entity\Money;
Expand Down Expand Up @@ -84,9 +84,11 @@ public function buildForm(FormBuilderInterface $builder, array $options)
}

/**
* {@inheritdoc}
* Configures the options for this type.
*
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
/**
* We set given Currency as default object to work with
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/GeoBundle/Form/Type/AddressType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;

Expand All @@ -31,13 +31,11 @@ class AddressType extends AbstractType
use FactoryTrait;

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;

Expand All @@ -31,13 +31,11 @@ class NewsletterSubscriptionType extends AbstractType
use FactoryTrait;

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/PageBundle/Form/Type/BlogPostType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;
use Elcodi\Component\EntityTranslator\EventListener\Traits\EntityTranslatableFormTrait;
Expand All @@ -33,13 +33,11 @@ class BlogPostType extends AbstractType
use EntityTranslatableFormTrait, FactoryTrait;

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/PageBundle/Form/Type/EmailType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;
use Elcodi\Component\EntityTranslator\EventListener\Traits\EntityTranslatableFormTrait;
Expand All @@ -33,13 +33,11 @@ class EmailType extends AbstractType
use EntityTranslatableFormTrait, FactoryTrait;

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/PageBundle/Form/Type/PageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;
use Elcodi\Component\EntityTranslator\EventListener\Traits\EntityTranslatableFormTrait;
Expand Down Expand Up @@ -51,13 +51,11 @@ public function __construct(EventSubscriberInterface $permanentPageSubscriber)
}

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
10 changes: 4 additions & 6 deletions src/Elcodi/Admin/ProductBundle/Form/Type/CategoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints;

use Elcodi\Component\Core\Factory\Traits\FactoryTrait;
Expand All @@ -34,13 +34,11 @@ class CategoryType extends AbstractType
use EntityTranslatableFormTrait, FactoryTrait;

/**
* Default form options
* Configures the options for this type.
*
* @param OptionsResolverInterface $resolver
*
* @return array With the options
* @param OptionsResolver $resolver The resolver for the options.
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'empty_data' => function () {
Expand Down
Loading

0 comments on commit c1f57c1

Please sign in to comment.