diff --git a/.env b/.env index afeca281b..187d16b50 100644 --- a/.env +++ b/.env @@ -2,4 +2,3 @@ DATABASE_URL="mysql://root:1234@127.0.0.1:3307/foundry_test?serverVersion=5.7.42 MONGO_URL="mongodb://127.0.0.1:27018/dbName?compressors=disabled&gssapiServiceName=mongodb" USE_FOUNDRY_BUNDLE=1 TEST_MIGRATIONS=0 -MAKER_PHP_CS_FIXER_BINARY_PATH="vendor/bin/php-cs-fixer" diff --git a/src/Bundle/DependencyInjection/Configuration.php b/src/Bundle/DependencyInjection/Configuration.php index 1b4d1ca86..8c8407866 100644 --- a/src/Bundle/DependencyInjection/Configuration.php +++ b/src/Bundle/DependencyInjection/Configuration.php @@ -27,6 +27,7 @@ public function getConfigTreeBuilder(): TreeBuilder $treeBuilder->getRootNode() ->children() ->booleanNode('auto_refresh_proxies') + ->setDeprecated('zenstruck/foundry', '1.37.0', 'The option "zenstruck_foundry.auto_refresh_proxies" is deprecated, you should remove it.') ->info('Whether to auto-refresh proxies by default (https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#auto-refresh)') ->defaultNull() ->end() diff --git a/src/Configuration.php b/src/Configuration.php index 1fea4bcbc..50c1ae8d3 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -85,8 +85,6 @@ public function defaultProxyAutoRefresh(): bool } if (null === $this->defaultProxyAutoRefresh) { - trigger_deprecation('zenstruck\foundry', '1.9', 'Not explicitly configuring the default proxy auto-refresh is deprecated and will default to "true" in 2.0. Use "zenstruck_foundry.auto_refresh_proxies" in the bundle config or TestState::enableDefaultProxyAutoRefresh()/disableDefaultProxyAutoRefresh().'); - $this->defaultProxyAutoRefresh = false; } diff --git a/tests/Fixtures/Kernel.php b/tests/Fixtures/Kernel.php index 92fb4fc10..6041eb907 100644 --- a/tests/Fixtures/Kernel.php +++ b/tests/Fixtures/Kernel.php @@ -165,7 +165,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load } if (\getenv('USE_FOUNDRY_BUNDLE')) { - $foundryConfig = ['auto_refresh_proxies' => true]; + $foundryConfig = []; if ($this->defaultMakeFactoryNamespace) { $foundryConfig['make_factory'] = ['default_namespace' => $this->defaultMakeFactoryNamespace]; }