Skip to content
Permalink
Browse files

avoid deprecation notices during tests with Symfony 3.4

  • Loading branch information...
craue committed Nov 8, 2017
1 parent 3e9aa2f commit 10dc7c4389ff480acfe89eb68e6c35257e0355d7
@@ -23,7 +23,7 @@
<argument type="service" id="session" />
</service>

<service id="craue.form.flow.storage" alias="craue.form.flow.storage_default" />
<service id="craue.form.flow.storage" alias="craue.form.flow.storage_default" public="true" />

<service id="craue.form.flow.data_manager_default" class="Craue\FormFlowBundle\Storage\DataManager" public="false">
<argument type="service" id="craue.form.flow.storage" />
@@ -13,6 +13,6 @@
</parameters>

<services>
<service id="craue_formflow_util" class="%craue_formflow.util.class%" />
<service id="craue_formflow_util" class="%craue_formflow.util.class%" public="true" />
</services>
</container>
@@ -0,0 +1,42 @@
<?php
namespace Craue\FormFlowBundle\Tests\IntegrationTestBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\HttpKernel\Kernel;
/**
* Registration of the bundle via DI.
*
* @author Christian Raue <christian.raue@gmail.com>
* @copyright 2011-2017 Christian Raue
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
class IntegrationTestExtension extends Extension implements PrependExtensionInterface {
/**
* {@inheritDoc}
*/
public function load(array $config, ContainerBuilder $container) {
}
/**
* {@inheritDoc}
*/
public function prepend(ContainerBuilder $container) {
// avoid a deprecation notice regarding logout_on_user_change with Symfony 3.4
// TODO remove as soon as Symfony >= 4.0 is required
if (Kernel::MAJOR_VERSION === 3 && Kernel::MINOR_VERSION === 4) {
$container->prependExtensionConfig('security', array(
'firewalls' => array(
'dummy' => array(
'logout_on_user_change' => true,
),
),
));
}
}
}
@@ -11,56 +11,67 @@
<services>
<service id="integrationTestBundle.form.flow.createTopic"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\CreateTopicFlow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.createVehicle"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\CreateVehicleFlow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.demo1"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\Demo1Flow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.issue64"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\Issue64Flow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.issue87"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\Issue87Flow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.issue149"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\Issue149Flow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.revalidatePreviousSteps"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\RevalidatePreviousStepsFlow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.skipFirstStepUsingClosure"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\SkipFirstStepUsingClosureFlow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.removeSecondStepSkipMarkOnReset"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\RemoveSecondStepSkipMarkOnResetFlow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.onlyOneStep"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\OnlyOneStepFlow"
public="true"
parent="craue.form.flow">
</service>

<service id="integrationTestBundle.form.flow.photoUpload"
class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Form\PhotoUploadFlow"
public="true"
parent="craue.form.flow">
</service>
</services>

0 comments on commit 10dc7c4

Please sign in to comment.
You can’t perform that action at this time.