Skip to content

Commit 0a435a2

Browse files
committed
feature #106 rename the package to qossmic/rich-model-forms-bundle (xabbuh)
This PR was merged into the 0.8-dev branch. Discussion ---------- rename the package to qossmic/rich-model-forms-bundle Commits ------- 2649697 rename the package to qossmic/rich-model-forms-bundle
2 parents 4bd4841 + 2649697 commit 0a435a2

File tree

48 files changed

+10
-1365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+10
-1365
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -142,44 +142,3 @@ jobs:
142142
run: |
143143
vendor/bin/simple-phpunit --testsuite="unit tests"
144144
vendor/bin/simple-phpunit --testsuite="integration tests"
145-
146-
legacy-api-tests:
147-
name: 'Deprecated legacy API'
148-
149-
runs-on: 'ubuntu-latest'
150-
151-
strategy:
152-
matrix:
153-
php-version: ['7.4']
154-
155-
steps:
156-
- name: 'Check out'
157-
uses: 'actions/checkout@v2'
158-
159-
- name: 'Set up PHP'
160-
uses: 'shivammathur/setup-php@v2'
161-
with:
162-
php-version: '${{ matrix.php-version }}'
163-
coverage: 'none'
164-
165-
- name: 'Get Composer cache directory'
166-
id: 'composer-cache'
167-
run: 'echo "::set-output name=cache-dir::$(composer config cache-files-dir)"'
168-
169-
- name: 'Cache dependencies'
170-
uses: 'actions/cache@v2'
171-
with:
172-
path: '${{ steps.composer-cache.outputs.cache-dir }}'
173-
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
174-
restore-keys: 'php-${{ matrix.php-version }}-composer-locked-'
175-
176-
- name: 'Install dependencies'
177-
run: |
178-
composer update --no-progress --prefer-stable
179-
180-
- name: 'Install PHPUnit'
181-
run: 'vendor/bin/simple-phpunit install'
182-
183-
- name: 'Run tests'
184-
run: |
185-
vendor/bin/simple-phpunit --testsuite="legacy API"

CHANGELOG.md

Lines changed: 3 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,9 @@
11
CHANGELOG
22
=========
33

4-
0.8.0
5-
-----
6-
7-
* The package is marked as abandoned and will no longer be maintained. Fix all deprecations and
8-
depend on the `qossmic/rich-model-forms-bundle` package instead.
9-
* Deprecated the `SensioLabs` namespace, use the equivalent classes from the `Qossmic` namespace
10-
instead.
11-
* Deprecated all services whose id starts with `sensiolabs.`, use their equivalent ids starting
12-
with `qossmic.` instead.
13-
* Deprecated the `sensiolabs.rich_model_forms.exception_handler` tag, use the `qossmic.rich_model_forms.exception_handler`
14-
tag instead.
15-
16-
0.7.1
17-
-----
18-
19-
* Fixed compatibility with `symfony/form` 5.3.
20-
21-
0.7.0
22-
-----
23-
24-
* Allow the bundle to be used on PHP 8.
25-
* [BC BREAK] When closures (anonymous functions) are used for the `factory` option, the submitted
26-
form data is no longer passed as an array, but each child form is passed as a single argument
27-
instead (use the `factory_argument` option of the child forms if form names and argument names
28-
of the closure differ).
29-
30-
0.6.0
31-
-----
32-
33-
* Added a `factory_argument` allowing to use field names differing from the name of the actual
34-
factory argument (#82).
35-
* Fixed using the `read_property_path` option with value objects (#89).
36-
* Both the `read_property_path` and `write_property_path` options can now be used without
37-
configuring the other one (#88).
38-
* Added handling for `TypeError` instances thrown for typed properties on PHP 7.4+ (#85).
39-
40-
0.5.1
41-
-----
42-
43-
* Fixed dealing with non-mapped fields when mapping to value objects (#81).
44-
45-
0.5.0
46-
-----
47-
48-
* Fixed compatibility with `symfony/translation` 5.0.
49-
* Dropped support for Symfony components < 4.4.
50-
51-
0.4.0
52-
-----
53-
54-
* Allow to use the bundle with Symfony 5 components.
55-
56-
0.3.0
57-
-----
58-
59-
* Added support for mapping several form fields to a single method of the underlying model.
60-
* Exceptions thrown during instantiating value objects are now caught and mapped back to the form as transformation
61-
failures.
62-
* [BC BREAK] The `ValueObjectTransformer` requires an `ExceptionHandlerRegistry` instance.
63-
* [BC BREAK] The first argument's type of the `ExceptionHandlerInterface::getError()` method has been changed from
64-
`FormInterface` to `FormConfigInterface`.
65-
* [BC BREAK] The return type of `ExceptionHandlerInterface::getError()` has been changed to `SensioLabs\RichModelForms\ExceptionHandling\Error`.
66-
* [BC BREAK] A `TranslatorInterface` and the translation domain to be used must now be passed to the `FormExceptionHandler`
67-
instead of passing to the individual `ExceptionHandlerInterface` implementations.
68-
69-
0.2.1
70-
-----
71-
72-
* Fix to actually use a configured factory when submitting non-compound forms.
73-
* Fixed passing submitted data to the configured factory for compound forms.
74-
* Abstain from trying to map buttons to the data when creating value objects.
75-
* Raise an error when the `data_class` option is used while the `immutable` option is enabled.
76-
77-
0.2.0
78-
-----
79-
80-
* [BC BREAK] renamed `SensioLabs\RichModelForms\ExceptionHandling\ExceptionHandler` to
81-
`SensioLabs\RichModelForms\ExceptionHandling\ExceptionHandlerInterface`
82-
* Added a `PropertyMapperInterface` whose implementations can be passed to forms using the new
83-
`property_mapper` option to map data to forms and vice versa programmatically.
84-
* The `expected_exception` option is deprecated and will be removed in 0.3. Use `handle_exception` instead.
85-
864
0.1.0
875
-----
886

89-
Initial release of the bundle.
7+
Initial release of the bundle under its new `qossmic/rich-model-forms-bundle` package name. This release is
8+
feature-equivalent to the `0.8.0` release of the `sensiolabs-de/rich-model-forms-bundle` package apart from
9+
all deprecated services and PHP classes being removed.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Installation
1010
Use Composer to install the bundle:
1111

1212
```bash
13-
$ composer require sensiolabs-de/rich-model-forms-bundle
13+
$ composer require qossmic/rich-model-forms-bundle
1414
```
1515

1616
When using Symfony Flex, the bundle will be enabled automatically. Otherwise, you need to make sure that the bundle is

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"name": "sensiolabs-de/rich-model-forms-bundle",
2+
"name": "qossmic/rich-model-forms-bundle",
33
"description": "Provides additional data mapper options that ease the use of the Symfony Form component with rich models.",
44
"keywords": ["Symfony", "form", "forms", "bundle", "rich model", "DDD", "domain-driven design"],
55
"type": "symfony-bundle",
66
"license": "MIT",
7-
"abandoned": "qossmic/rich-model-forms-bundle",
87
"authors": [
98
{
109
"name": "Christian Flothmann",
@@ -33,14 +32,16 @@
3332
"symfony/phpunit-bridge": "^4.4||^5.0",
3433
"symfony/translation": "^4.4||^5.0"
3534
},
35+
"conflict": {
36+
"sensiolabs-de/rich-model-forms-bundle": "0.8.*"
37+
},
3638
"minimum-stability": "dev",
3739
"config": {
3840
"sort-packages": true
3941
},
4042
"autoload": {
4143
"psr-4": {
42-
"Qossmic\\RichModelForms\\": "src/Qossmic",
43-
"SensioLabs\\RichModelForms\\": "src/Legacy"
44+
"Qossmic\\RichModelForms\\": "src/Qossmic"
4445
}
4546
},
4647
"autoload-dev": {
@@ -50,7 +51,7 @@
5051
},
5152
"extra": {
5253
"branch-alias": {
53-
"dev-main": "0.8-dev"
54+
"dev-main": "0.1-dev"
5455
}
5556
}
5657
}

phpstan-baseline.neon

Lines changed: 0 additions & 97 deletions
This file was deleted.

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
includes:
22
- phar://vendor/phpstan/phpstan/phpstan.phar/conf/config.levelmax.neon
3-
- phpstan-baseline.neon
43

54
parameters:
65
checkMissingIterableValueType: false
76
inferPrivatePropertyTypeFromConstructor: true
87
paths:
98
- src
10-
reportUnmatchedIgnoredErrors: false

src/Legacy/DataMapper/DataMapper.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Legacy/DataMapper/PropertyMapperInterface.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Legacy/DataTransformer/ValueObjectTransformer.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Legacy/DependencyInjection/Compiler/RegisterExceptionHandlersPass.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)