Commit Graph

323 Commits

Author SHA1 Message Date
Kamil Kokot
be8081d580 Allow to configure the application kernel's debug setting 2019-01-10 23:29:11 +01:00
Kamil Kokot
8dcd3e9d4d Allow to configure the application kernel's custom environment 2019-01-10 23:25:19 +01:00
Kamil Kokot
01f458149e Test default kernel configuration 2019-01-10 23:22:06 +01:00
Kamil Kokot
7687e756f1 Implement kernel autodiscovering 2019-01-10 23:03:02 +01:00
Kamil Kokot
ab70d2993d Test loading kernel based on classname and path 2019-01-10 22:47:17 +01:00
Kamil Kokot
3f7f9ccdbb Test loading kernel based on classname 2019-01-10 22:43:54 +01:00
Kamil Kokot
25e24f3d3a Update the list of ignored files for export 2019-01-10 22:32:44 +01:00
Kamil Kokot
f8fad58f68 Update LICENSE year 2019-01-10 22:30:53 +01:00
Kamil Kokot
f0ab4f278f Make readme aligned again 2019-01-10 22:30:12 +01:00
Kamil Kokot
eb3ebe8067 Rework readme header 2019-01-10 22:29:51 +01:00
Kamil Kokot
ba2cee39a8 Clear the readme 2019-01-10 22:26:21 +01:00
Kamil Kokot
727199bb8a Rename kernel rebooter 2019-01-10 22:25:05 +01:00
Kamil Kokot
a9b3cdf4a9 Remove all not tested configuration options 2019-01-10 22:19:26 +01:00
Kamil Kokot
f613c43cf2 Refactor the extension file 2019-01-10 22:13:17 +01:00
Kamil Kokot
c5a94dfc0c Remove untested "env_file" setting 2019-01-10 22:11:56 +01:00
Kamil Kokot
3c91f0af7d Test: Using context by its service id 2019-01-10 22:09:17 +01:00
Kamil Kokot
9ea3ac6f30 Reorganise feature files 2019-01-10 22:01:48 +01:00
Kamil Kokot
df47b5199d More thorough testing 2019-01-10 21:59:24 +01:00
Kamil Kokot
e476aa76b4 Change package type to "symfony-bundle" 2019-01-10 18:12:20 +01:00
Kamil Kokot
fc3d941443 refactor #42 Acceptance tests for core functionalities (bartoszpietrzak1994, pamil)
This PR was merged into the 2.0-dev branch.

Discussion
----------



Commits
-------

742d3358b5 Injected parameter test POC
7250dfca76 Get bare Behat scenario running
11f5a326b3 Test injecting parameters
d4efe9a6df Simplify services definition in Behat
9cede4d612 Test injecting services
d5fcb25ef2 Test autowiring contexts
b4bcbb1233 Test autowired & autoconfigured contexts
c8b0cbb205 Test isolating contexts
6061eaaf62 Test Mink integration
05f4fe789f Apply coding standard fixes
4405596ca1 Make PHPStan passing
85796e2fef Fix build on Symfony 3.4
2019-01-10 15:00:45 +01:00
Kamil Kokot
85796e2fef Fix build on Symfony 3.4 2019-01-10 00:18:46 +01:00
Kamil Kokot
4405596ca1 Make PHPStan passing 2019-01-10 00:10:27 +01:00
Kamil Kokot
05f4fe789f Apply coding standard fixes 2019-01-09 23:47:50 +01:00
Kamil Kokot
6061eaaf62 Test Mink integration 2019-01-09 23:47:24 +01:00
Kamil Kokot
c8b0cbb205 Test isolating contexts 2019-01-09 23:15:52 +01:00
Kamil Kokot
b4bcbb1233 Test autowired & autoconfigured contexts 2019-01-09 23:02:55 +01:00
Kamil Kokot
d5fcb25ef2 Test autowiring contexts 2019-01-09 22:53:39 +01:00
Kamil Kokot
9cede4d612 Test injecting services 2019-01-09 22:40:32 +01:00
Kamil Kokot
d4efe9a6df Simplify services definition in Behat 2019-01-09 22:37:18 +01:00
Kamil Kokot
11f5a326b3 Test injecting parameters 2019-01-09 22:35:57 +01:00
Kamil Kokot
7250dfca76 Get bare Behat scenario running 2019-01-09 22:29:50 +01:00
Bartosz Pietrzak
742d3358b5 Injected parameter test POC 2019-01-09 19:23:39 +01:00
Kamil Kokot
9c41bdbcba Compress scenario 2018-12-31 17:25:05 +01:00
Kamil Kokot
032ecb64d2 Replace FOB/TestContext with local TestContext 2018-12-31 16:57:35 +01:00
Kamil Kokot
463c274dbc Create minimal passing scenario 2018-12-31 16:54:12 +01:00
Kamil Kokot
3ef67d3efc Simplify configuration 2018-12-31 16:06:05 +01:00
Kamil Kokot
9b3672d7f2 Make exception messages great again 2018-12-31 16:03:00 +01:00
Kamil Kokot
9cc5df85bf Throw an exception if the bundle isn't registered 2018-12-31 15:48:56 +01:00
Kamil Kokot
5151d30b24 Minor fixes 2018-12-31 15:47:48 +01:00
Kamil Kokot
f334860d5c Make SymfonyExtension great again 2018-12-28 19:55:49 +01:00
Kamil Kokot
0ecd038e61 Make MinkParameters imitate PHP arrays 2018-12-28 15:40:13 +01:00
Kamil Kokot
9b6206d47b Add MinkParameters support 2018-12-28 15:24:33 +01:00
Kamil Kokot
50fc509fb3 SymfonyExtension v2.0: proof of concept 2018-12-28 13:08:51 +01:00
Kamil Kokot
3ef0d0dcf3 feature #41 Support: remove Symfony 4.0 and add Symfony 4.2 (pamil)
This PR was merged into the 1.4-dev branch.

Discussion
----------



Commits
-------

a1792f934f Support: remove Symfony 4.0 and add Symfony 4.2
2018-12-19 15:42:27 +01:00
Kamil Kokot
a1792f934f Support: remove Symfony 4.0 and add Symfony 4.2 2018-12-19 15:37:07 +01:00
Kamil Kokot
7f58add0f4 feature #29 Proposal: Add autoconfiguration for Symfony 4, other tweaks (adiq)
This PR was merged into the 1.4-dev branch.

Discussion
----------

So this is my proposal for SymfonyExtension. Related to #28 

What it changes:

1. Adds autoconfiguration for Symfony 4 (when default `src/Kernel.php` is detected); Improves DX.

So when project bein compliant with new Symfony 4 structure, the configuration will look like:
```
            extensions:
                FriendsOfBehat\SymfonyExtension: ~
```
The standard `.env` file is loaded by default.

2. Explicit settings of `env` and `debug` parameters will override the configuration loaded from `.env` file. This also improves DX, as there is no need for hacky workarounds to get behat working.

3. Fixed issue with the badly named configuration `$config['kernel']['kernel'] = $debugMode;` in 1a39d31f5e

4. Tweaked README to include new configuration details


When it might seem only like an improvement, it's required to get behat working on new Symfony 4 structure when you: do not want to store a separate copy of `.env` with only `APP_ENV` changed to `test`, do not want to change those settings back and forth in `.env` file; which I consider not good practice and not good DX for sure 😄 

Commits
-------

09c6530115 Add autoconfiguration for Symfony 4, allow overriding .env setting by using explicit env and debug settings, tweaks
141074a24e Tweak README to include new configuration details for Symfony 4, tweak variable name
149d41087f Add symfony 4 configuration loading when bootstrap is null; tweaked formatting, naming, tests and readme
49c4fc2a0e Tweak README typos
99db863175 Tweaks after CR: remove obsolete docblocks, fix code formatting to match ECS
2018-12-19 15:08:16 +01:00
Adrian Zmenda
99db863175 Tweaks after CR: remove obsolete docblocks, fix code formatting to match ECS 2018-12-09 16:11:00 +01:00
Adrian Zmenda
49c4fc2a0e Tweak README typos 2018-12-09 15:51:39 +01:00
Adrian Zmenda
149d41087f Add symfony 4 configuration loading when bootstrap is null; tweaked formatting, naming, tests and readme 2018-12-09 15:51:11 +01:00
Adrian Zmenda
141074a24e Tweak README to include new configuration details for Symfony 4, tweak variable name 2018-12-09 15:47:50 +01:00