https://github.com/schemar/symfonyexercise
A project which uses bad coding style and patterns deliberately to be spotted
https://github.com/schemar/symfonyexercise
Last synced: about 2 months ago
JSON representation
A project which uses bad coding style and patterns deliberately to be spotted
- Host: GitHub
- URL: https://github.com/schemar/symfonyexercise
- Owner: schemar
- License: mit
- Created: 2015-02-09T10:11:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-16T17:42:31.000Z (over 11 years ago)
- Last Synced: 2026-01-15T08:16:54.802Z (5 months ago)
- Language: PHP
- Size: 258 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Exercise in Symfony
This is an empty Symfony project where you should add the missing functionality.
Please *email* the result to me.
For routes use annotations.
For services use XML.
Please implement an API for a todo list.
If there are any questions, please don't hesitate to contact me.
---
**Do not make your solution publicly available until after the interviews, so nobody can copy your solution.**
---
## API
Create a RESTful API to access the two entities explained below (CRUD).
Your endpoints should fit the generally suggested REST standards.
Do not use a rest bundle like FOSRestBundle, that would defeat the purpose of this exercise.
## Entities
Create two entities (and their repositories):
* `List`
* `Item`
Lists have at least an ID and a name.
Items have at least an ID and text.
Items are part of a list.
One item always belongs to one list.
One list can have many items.
## Services
Create at least two API services:
* `ListService`
* `ItemService`
These services manage the items in relation to the API.
Create Manager Services (e.g. `ItemManager`), which manage database operations on entities.
Implement at least the following methods for the managers:
* `create()`
* `update(Entity $entity)`
* `findById($id)`
## Tests
Also submit all tests you wrote.
You can run tests with `bin/phpunit -c app`.