Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Commit 1cffb1c

Browse files
1. fake PATCH action 2. tests refactoring 3. remove fos_comment bundle
1 parent 548e0d7 commit 1cffb1c

20 files changed

+767
-665
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# code-challenge
22

3+
## Requirements
4+
* mysql 5.7
5+
* php 7
6+
37
## Installing
48

59
Copy the project
@@ -20,6 +24,8 @@ $ composer install
2024
Adjust DB credentials
2125
```bash
2226
$ vim .env
27+
$ vim config/packages/test/doctrine.yaml
28+
2329
```
2430

2531
Create DB and load seed data
@@ -32,8 +38,19 @@ $ bin/console doctrine:migrations:migrate -n --env=prod
3238
$ bin/console doctrine:migrations:migrate -n --env=test
3339
```
3440

41+
Run application using a local web server
42+
```bash
43+
php -S 127.0.0.1:8000 -t public
44+
```
45+
46+
## Run tests
47+
```bash
48+
$ bin/phpunit
49+
```
50+
3551
## Possible enhancements
3652
* **Order::$executionDate:**
3753
Possible values for Order::$executionDate property could be described as relation to new entity.
3854
* **Hide specific fields from exposing:**
39-
Exclusion policies could be used for that purpose.
55+
Exclusion policies could be used for that purpose.
56+
* Do something with **deprecation notice** in test. Currently cannot be fixed because of [that](https://github.com/symfony/symfony/issues/28119).

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
"ext-json": "^1.6",
99
"doctrine/doctrine-bundle": "^1.9",
1010
"doctrine/orm": "^2.6",
11-
"friendsofsymfony/comment-bundle": "^2.2",
1211
"friendsofsymfony/rest-bundle": "^2.4",
12+
"jms/serializer-bundle": "^2.4",
1313
"symfony/console": "*",
1414
"symfony/flex": "^1.1",
15+
"symfony/form": "*",
1516
"symfony/framework-bundle": "*",
17+
"symfony/monolog-bundle": "^3.3",
1618
"symfony/orm-pack": "^1.0",
1719
"symfony/serializer-pack": "^1.0",
18-
"symfony/twig-bundle": "*",
20+
"symfony/validator": "*",
1921
"symfony/yaml": "*"
2022
},
2123
"require-dev": {

0 commit comments

Comments
 (0)