Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to symfony 6.4 #3

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2ddc826
upgrade to symfony 6.3
hbagherzadegan Jul 24, 2023
55e6195
Initial commit
pamil Jul 22, 2016
5c89306
SymfonyExtension v2.0: proof of concept
pamil Dec 19, 2018
18b7c38
Rename kernel rebooter
pamil Jan 10, 2019
2ce90c5
Implement kernel autodiscovering
pamil Jan 10, 2019
4cf76b4
Implement bootstrap file autodiscovering
pamil Jan 10, 2019
c19c590
Add tests for context initializers
pamil Feb 12, 2019
2247e0f
Add more sanity checks
pamil Feb 12, 2019
d582782
Refactor our environment handler to decorate the original one
pamil Feb 12, 2019
b67d770
Apply suggestions from code review
alanpoulain Feb 13, 2019
3e826a2
Expose the Mink service
pamil Feb 13, 2019
f55263c
Allow accessing a context in another context
pamil Mar 4, 2019
25c60ec
Fix bug preventing changes of Mink default session service
pamil Mar 15, 2019
4c3e2dc
Hotfix for weird bug in Sylius
pamil Mar 17, 2019
67ed4b7
Initialize contexts registered as services
pamil Mar 21, 2019
1cd534c
Provide simple BrowserKit integration
pamil May 17, 2019
e80efb8
Generate changelog for v2.1.0-BETA.1
pamil Jan 15, 2020
769a0bc
Describe accessing driver's service container
pamil Apr 4, 2020
cf03b50
Generate changelog for v2.0.11
pamil Apr 4, 2020
ec3ef43
Replace PHPStan with Psalm
pamil Apr 4, 2020
5cdf5f3
upgrade to symfony 6.3
hbagherzadegan Jul 24, 2023
0704836
SymfonyExtension v2.0: proof of concept
pamil Dec 19, 2018
59c7d55
Rename kernel rebooter
pamil Jan 10, 2019
975cfa0
Add tests for context initializers
pamil Feb 12, 2019
36d73c7
Add more sanity checks
pamil Feb 12, 2019
db0a1d1
Refactor our environment handler to decorate the original one
pamil Feb 12, 2019
2c331f6
Apply suggestions from code review
alanpoulain Feb 13, 2019
3b202d4
upgrade to symfony 6.3
hbagherzadegan Jul 25, 2023
9c7fb2e
- update README.md
hbagherzadegan Jul 25, 2023
3de3afa
upgrade-to-symfony-6.4
hbagherzadegan Jan 4, 2024
1261584
upgrade-to-symfony-6.4
hbagherzadegan Jan 4, 2024
014758e
upgrade-to-symfony-6.4
hbagherzadegan Jan 4, 2024
33a90f7
- update rector to 0.19.2
hbagherzadegan Jan 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor our environment handler to decorate the original one
  • Loading branch information
pamil authored and hbagherzadegan committed Jul 25, 2023
commit db0a1d1ba939c4884060e7a659c58018c47e61df
24 changes: 0 additions & 24 deletions src/Context/Environment/ContextServiceEnvironment.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* @see ContextServiceEnvironmentHandler
*/
final class InitialisedContextServiceEnvironment implements ContextServiceEnvironment
final class InitialisedSymfonyExtensionEnvironment implements SymfonyExtensionEnvironment
{
/** @var Suite */
private $suite;
Expand Down
63 changes: 0 additions & 63 deletions src/Context/Environment/UninitialisedContextServiceEnvironment.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php

declare(strict_types=1);

/*
* This file is part of the SymfonyExtension package.
*
* (c) Kamil Kokot <kamil@kokot.me>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace FriendsOfBehat\SymfonyExtension\Context\Environment;

use Behat\Behat\Context\Environment\ContextEnvironment;
use Behat\Testwork\Environment\StaticEnvironment;
use Behat\Testwork\Suite\Suite;
use FriendsOfBehat\SymfonyExtension\Context\Environment\Handler\ContextServiceEnvironmentHandler;

/**
* @see ContextServiceEnvironmentHandler
*/
final class UninitialisedSymfonyExtensionEnvironment extends StaticEnvironment implements SymfonyExtensionEnvironment
{
/** @var string[] */
private $contexts;

/** @var ContextEnvironment|null */
private $delegatedEnvironment;

public function __construct(Suite $suite, array $contexts, ContextEnvironment $delegatedEnvironment)
{
parent::__construct($suite);

$this->contexts = $contexts;
$this->delegatedEnvironment = $delegatedEnvironment;
}

public function getServices(): array
{
return array_keys($this->contexts);
}

public function hasContexts(): bool
{
return count($this->contexts) > 0 || $this->delegatedEnvironment->hasContexts();
}

public function getContextClasses(): array
{
return array_merge(array_values($this->contexts), $this->delegatedEnvironment->getContextClasses());
}

public function hasContextClass($class): bool
{
return in_array($class, $this->contexts, true) || $this->delegatedEnvironment->hasContextClass($class);
}

public function getDelegatedEnvironment(): ContextEnvironment
{
return $this->delegatedEnvironment;
}
}