This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented registration form and improved documentation
- Loading branch information
Showing
59 changed files
with
2,956 additions
and
1,235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ sudo: false | |
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
|
||
before_script: | ||
- composer install --no-interaction | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
https://twitter.com/cramforce/status/910489995617562624 | ||
# Tradeoffs | ||
|
||
## Potential reasons to use Symlex | ||
|
||
- Symlex is designed to be simple with few concepts to understand | ||
- Using Symlex results is more maintainable and testable code that is fundamental for agile development | ||
- It has proven to be well suited for rapidly building microservices, CLI and single-page applications | ||
- It comes complete with working examples | ||
- Built on top of well documented and tested standard components | ||
- Contains everything to create full-featured Web applications: Service container, REST routing & Twig template engine | ||
- Lower complexity and improved performance compared to Symfony standard edition and many other frameworks | ||
- Plain classes are used wherever possible to avoid vendor lock-in and enable framework independent code reuse | ||
- While you can use Symfony Components and any other PHP library out there, you can not use Symfony bundles as they | ||
make it easy to add tons of code to an application with very little work and understanding for what it does | ||
(bundles are nothing else than libraries that come with their own, hidden service container configuration and bootstrap code) | ||
- Even if you choose not use Symlex, you might find lots of inspiration for your own projects | ||
|
||
## Potential reasons to not use Symlex | ||
|
||
- Symlex has a small community so far, see [history](../README.md) | ||
- Development is mostly driven by the needs of specific applications (development started to have a high-performance | ||
replacement for FOSRestBundle) | ||
- It is not good for developers who are not comfortable reading at least small amounts of framework code as not | ||
everything is documented 100% (you are welcome as ask for help via email and send additional docs as pull request) | ||
- Symlex is completely not suitable if you would like to or need to work with existing Symfony bundles | ||
- Symlex is not good if you prefer configuration over coding | ||
- Copy and pasting code from Stack Overflow or the Symfony documentation often won't work without | ||
understanding it and adapting it a little e.g. when it comes to service configuration or routing | ||
- Symlex still uses Silex for routing under the hood; a replacement for Silex is in development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
services: | ||
router.rest: | ||
class: App\Router\RestRouter | ||
public: true | ||
arguments: [ "@app", "@service_container" ] | ||
calls: | ||
- [ setSession, [ "@service.session" ] ] | ||
|
||
controller.rest.v1.users: | ||
class: App\Controller\Rest\V1\UsersController | ||
public: true | ||
arguments: [ "@service.session", "@model.factory", "@form.factory" ] | ||
calls: | ||
- [ setMailService, [ "@service.mail" ]] | ||
|
||
controller.rest.v1.session: | ||
class: App\Controller\Rest\V1\SessionController | ||
arguments: [ "@service.session", "@model.user", %app.version%, %app.debug% ] | ||
public: true | ||
arguments: [ "@service.session", "@model.user", "%app.version%", "%app.debug%" ] | ||
|
||
controller.rest.v1.registration: | ||
class: App\Controller\Rest\V1\RegistrationController | ||
public: true | ||
arguments: [ "@service.captcha", "@service.mail", "@model.factory", "@form.factory"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.