Commit Graph

32 Commits

Author SHA1 Message Date
Buster "Silver Eagle" Neece 5cbacd5df6
System-Wide Strict Types (#4405) 2021-07-19 00:53:45 -05:00
Buster "Silver Eagle" Neece ef4bcbc2aa
Generate new forms on each request.
Contrary to the previous commit removing factory calls from per-every-request functionality, the isolated functionality of EntityForm classes and their tendency to modify the form on a per-request basis necessitates that, for consistent testing, they DO use the factoryinterface instead of using a singleton class.
2021-07-06 06:36:09 -05:00
Buster "Silver Eagle" Neece 3f23efa076
PHP code style fixes. 2021-06-08 01:40:49 -05:00
Buster "Silver Eagle" Neece 731f16a494
Update raw DQL queries across the system to improve readability. 2020-12-01 18:36:09 -06:00
Buster "Silver Eagle" Neece bc7773a2f1
#3312 -- Remove the "Administer Users"/"Permissions" permissions. 2020-10-22 06:16:19 -05:00
Vaalyn 9a94e6a178
Add PHPCS for code style checks (#3273) 2020-10-14 17:19:31 -05:00
Buster "Silver Eagle" Neece b1c44272c6
Fixes #3097 -- Prevent limited user permission escalation.
Explanation: Users with the "administer users" permission could previously impersonate a user with the "administer all" permission, thus granting themselves escalated permissions. This is a limited security risk, since only users with the global "administer users" permission were able to exploit it.
2020-08-29 00:57:49 -05:00
Buster "Silver Eagle" Neece 6f66ff072b
Make Auth and Customization PSR-7 lifecycle friendly. 2020-07-09 23:15:27 -05:00
Buster "Silver Eagle" Neece 4d4d75ad4d
Reunify AzuraCore and AzuraCast repositories. 2020-02-05 20:35:13 -06:00
Buster "Silver Eagle" Neece 8e08b7b798
Remove now-redundant PHPDoc blocks that don't add context. 2019-12-07 17:42:23 -06:00
Buster "Silver Eagle" Neece 1a6d1d620d
Add PHP 7.4 type hinting everywhere except Entities. 2019-12-07 06:19:49 -06:00
Buster "Silver Eagle" Neece 5a8709f82c
Switch to PSR-7-based Redis-backed session persistence. 2019-09-23 21:22:08 -05:00
Buster "Silver Eagle" Neece e3104a546a
Session handling overhaul
- Switch to "storageless sessions" middleware
- Update azuracore/azuraforms to apply necessary changes
- Switch form CSRF handling to use Session's CSRF handler
- Avoid using "magic" string in flash messages, switch to using constants.
2019-09-22 23:51:44 -05:00
Buster "Silver Eagle" Neece 630d0cb099
Add "Exception" to all exception names. 2019-09-10 11:40:31 -05:00
Buster "Silver Eagle" Neece a4a146673e
More fixes to allow for new PHP-DI bridge integration. 2019-09-09 23:02:08 -05:00
Buster "Silver Eagle" Neece 513d04f7d2
Code cleanup! 2019-09-04 13:00:51 -05:00
Buster Neece 0953182033
Localization Overhaul
- Replace several "add %s", "remove %s", "manage %s" strings with dedicated strings for each action
- Make API responses locale-aware and translated
- Make CLI locale-aware and translated
- Add initial support for Turkish language
2019-08-21 17:34:05 -05:00
Buster Neece 2f8ab5544a
Switch back to Request/Response decorators. 2019-08-09 10:00:21 -05:00
Buster "Silver Eagle" Neece 639dddf989
Slim PHP Framework 4 Update (#1822)
Implement an upgrade of the codebase to use Slim Framework version 4, which includes the following changes:
 - Updating to Slim version 4 and the corresponding AzuraCore updates.
 - Making all objects PSR-7 Request/Response agnostic (and creating RequestHelper and ResponseHelper objects to interact with the PSR-7 Req/Resp objects).
 - Moving to PHP-DI as a DI container and implementing its autowiring support.
2019-08-06 23:33:55 -05:00
Buster Neece 8f9be8c5ea
Switch all admin controllers to use entity forms. 2019-04-13 21:05:42 -05:00
Buster Neece d60b2fc0fe
Refactor all Doctrine queries to support PHPStorm's DQL highlighting. 2019-03-23 16:43:22 -05:00
Buster "Silver Eagle" Neece e2c73c13fd #1180 -- Greatly improve user self-deletion/role management protections. 2019-02-17 18:52:01 -06:00
Buster "Silver Eagle" Neece 750b393eb3 Broaden return type hint on all controllers for IDE compliance. 2018-11-17 09:30:28 -06:00
Buster "Silver Eagle" Neece da36da4982 Put all the providers in a Provider namespace. You know, like Laravel! 2018-08-27 02:14:05 -05:00
Buster "Silver Eagle" Neece 83d2990ad3 Restructure Url -> Http/Router, implement better pagination for requests 2018-08-20 19:48:03 -05:00
Buster "Silver Eagle" Neece 98ff8f69cf
Core code restructure (#697)
* Initial renaming to a single global App\ namespace.
* Move CSRF/Flash under Session, move Session under Request
* Use new Request Station helper
* Unify App/Acl and App/Acl/StationAcl
* Alphabetize composer.json
2018-08-04 17:05:14 -05:00
Buster Silver dcd3ed0859 Move "src/" to "app/src/" and reintroduce modularization for easy plugin-style extension. 2017-04-08 03:05:33 -05:00
Buster Silver 4ba84540e1 Prevent users from impersonating themselves and move non-service config back into main bootstrap.. 2017-04-05 22:22:39 -05:00
Buster Silver 4467b16e50 Second run of PSR-1/2 formatting and include updated AzuraCore code. 2017-01-23 18:35:16 -06:00
Buster Silver 5164d5184b Revert "Optimize imports and enforce PSR-1 and PSR-2 formatting standards."
This reverts commit 7cdba9a90b.
2017-01-23 18:17:50 -06:00
Buster Silver 7cdba9a90b Optimize imports and enforce PSR-1 and PSR-2 formatting standards. 2017-01-22 14:58:40 -06:00
Buster Silver d1334b1f82 Break out from old Zend-style modular framework to new PSR-friendly style: move configs into single "config" directory, controllers into src/Controller, templates into single "templates" directory. 2017-01-17 03:48:14 -06:00