Skip to content

Commit c23f61e

Browse files
committed
0.3.0 CHANGELOG.md + fixes
1 parent 5a65a81 commit c23f61e

4 files changed

Lines changed: 36 additions & 5 deletions

File tree

.env.dev.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
COMPOSE_PROJECT_NAME=reactphp_foundation
1212

13-
# developer's uid on host machine
13+
# developer's uid on the host machine
1414
# id -u
1515
HOST_UID=1000
1616

CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
- No changes yet.
1212

13+
## [0.3.0] - 2020-08-17
14+
### Added
15+
16+
- `Uri\MatcherInterface` and `ArrayMatcher` to map URI path from requests
17+
to the handler's actions (a simplified version of `UrlMatcher` from
18+
[symfony/routing](https://github.com/symfony/routing/blob/v5.1.0/Matcher/UrlMatcher.php)).
19+
- `.dockerignore` to exclude unnecessary/insecure files from the image building context.
20+
- Test suite configuration for [PHPUnit](https://github.com/sebastianbergmann/phpunit).
21+
- "Tests" block and navigation links for README.md.
22+
23+
### Changed
24+
25+
- Container configuration logic has moved from the application entrypoint
26+
to the `YamlConfigurator` shortcut.
27+
- Using HTTP health checks for HAProxy instance (instead of TCP).
28+
29+
### Fixed
30+
31+
- Definition options from `_defaults` node in the `services.yml` are now properly
32+
picked up by all services, not only ones defined in the same file (works if that node
33+
doesn't already exists in the target definition file; revised
34+
`YamlFileLoader` in the `Bridge\Symfony` scope).
35+
- Explicit UIDs and permissions for users within Dockerfiles
36+
(preventing potential access issues during CI checks and other workflows).
37+
1338
## [0.2.0] - 2020-07-20
1439
### Added
1540

@@ -31,6 +56,7 @@ the async socket server and the event loop.
3156
- `ServerInterface` and the `HandlerInterface`, example handler implementation.
3257
- Non-blocking logger (based on [wyrihaximus/react-psr-3-stdio](https://github.com/WyriHaximus/reactphp-psr-3-stdio)).
3358

34-
[Unreleased]: https://github.com/itnelo/reactphp-foundation/compare/0.2.0...0.x
59+
[Unreleased]: https://github.com/itnelo/reactphp-foundation/compare/0.3.0...0.x
60+
[0.3.0]: https://github.com/itnelo/reactphp-foundation/compare/0.2.0..0.3.0
3561
[0.2.0]: https://github.com/itnelo/reactphp-foundation/compare/0.1.0..0.2.0
3662
[0.1.0]: https://github.com/itnelo/reactphp-foundation/releases/tag/0.1.0

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@ This skeleton for self-sufficient, asynchronous microservice contains:
3030
It follows strong SOLID design and fully PSR-compatible, built
3131
with PHP 7.4+ features in mind (starting with typed properties).
3232

33-
It is also relatively lightweight and takes benefits
33+
It is also _relatively_ lightweight and takes benefits
3434
from both [Symfony](https://github.com/symfony/symfony) components
3535
and [ReactPHP](https://github.com/reactphp/reactphp)
3636
without raising up a heavy artillery setup.
3737

38+
There are a few deployment configurations
39+
([Docker Compose](https://docs.docker.com/compose) project and
40+
stack for [Docker Swarm](https://docs.docker.com/engine/swarm/key-concepts),
41+
featuring [HAProxy](https://www.haproxy.com) as a load balancer for your code).
42+
3843
## Installation
3944

4045
### Docker Swarm
@@ -150,7 +155,7 @@ Apply test suite configuration and run [phpunit](https://github.com/sebastianber
150155
```
151156
$ cp phpunit.xml.dist phpunit.xml
152157
153-
# docker-compose installation
158+
# for docker-compose installation
154159
$ docker-compose run --rm app bin/phpunit
155160
```
156161

src/Bridge/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function loadFile($file)
6969

7070
$serviceDefinitions = $content['services'];
7171

72-
if (array_key_exists('_defaults', $serviceDefinitions)) {
72+
if (!is_array($serviceDefinitions) || array_key_exists('_defaults', $serviceDefinitions)) {
7373
return $content;
7474
}
7575

0 commit comments

Comments
 (0)