Commit Graph

38 Commits

Author SHA1 Message Date
Buster "Silver Eagle" Neece a9f066602c
Code quality cleanup sweep. 2022-05-08 13:05:02 -05:00
Buster "Silver Eagle" Neece fb3a8a5fc9
Switch PHP translator implementation. 2022-05-07 11:44:14 -05:00
Buster "Silver Eagle" Neece 1495f090e7
Switch to SupervisorInterface 2022-04-10 22:57:23 -05:00
Buster "Silver Eagle" Neece cdc3495e6d
Add live-reload support for Icecast frontends. 2021-11-16 07:13:43 -06:00
Buster "Silver Eagle" Neece 058f306c15
Make entity functions line up with propertyaccess. 2021-11-06 23:02:44 -06:00
Buster "Silver Eagle" Neece b5fc9ad601
Use shared CallableEventManager library. 2021-08-04 21:24:27 -05:00
Buster "Silver Eagle" Neece 5cbacd5df6
System-Wide Strict Types (#4405) 2021-07-19 00:53:45 -05:00
Buster "Silver Eagle" Neece 3f23efa076
PHP code style fixes. 2021-06-08 01:40:49 -05:00
Buster "Silver Eagle" Neece e893a93981
Routine PHP 8 code inspection sweep
- Removing explicit calls to default values
 - Add strict parameter arguments
 - Use PHP8 built-in functions when possible
2021-04-23 17:12:47 -05:00
Buster "Silver Eagle" Neece f117644649
Apply PHP8-specific improvements. 2021-04-23 00:24:12 -05:00
Buster "Silver Eagle" Neece b6656a35f1
Prevent "BAD_NAME" exception from failing entire profile page. 2021-01-20 01:54:03 -06:00
Buster "Silver Eagle" Neece 937be1ab21
Refine adapter changes for compatibility. 2021-01-19 15:16:32 -06:00
Buster "Silver Eagle" Neece 4ccddeb5f3
Refactor adapters; move some static functions to be non-static and implement a better change tracking system. 2021-01-19 11:52:45 -06:00
Buster "Silver Eagle" Neece d955d63151
Remove unneeded Logger utility class. 2020-12-19 20:17:49 -06:00
Buster "Silver Eagle" Neece 0a8c41542d
Make environment immutable and strictly use function calls. 2020-12-06 05:57:39 -06:00
Buster "Silver Eagle" Neece 5727f12b6f
Settings refactor part 1: Rename App\Settings to App\Environment.
Previously AzuraCast had two very similar `$settings` variables, one that was from environment and the other from the database. This refactor distinguishes the two much more clearly.
2020-12-02 22:18:06 -06:00
Vaalyn 9a94e6a178
Add PHPCS for code style checks (#3273) 2020-10-14 17:19:31 -05:00
Buster "Silver Eagle" Neece c6aa34f65f
Revert one change from previous commit. 2020-10-05 01:44:26 -05:00
Buster "Silver Eagle" Neece a42fd321a5
Code quality improvements. 2020-10-05 01:27:12 -05:00
Buster "Silver Eagle" Neece 0adda37403
Incorporate new NowPlaying library
- Move much of AzuraCast's merging and client integration into the library itself
 - The library now uses typed properties on a return object for much more reliable hinting
 - Update both this library and SupervisorPHP to use PSR-17 and PSR-18 standardized factories
2020-07-03 15:24:04 -05:00
Buster "Silver Eagle" Neece 90e12fec62
Update supervisorphp lib again to get new exception classes. 2020-07-01 20:03:28 -05:00
Buster "Silver Eagle" Neece b96d8dbaac
Update SupervisorPHP version to 4.x alpha branch. 2020-07-01 19:26:26 -05:00
Buster "Silver Eagle" Neece 4bcfad3eb5
Updates preparing for Doctrine 3.0
- Switch to EntityManagerInterface for EM uses
 - Wrap EntityManager in close-resilient wrapper
 - Close/clear/reopen EM with every request
 - Rework tests to be em->clear() resilient.
2020-06-26 15:22:53 -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 23a47ac341
Code quality and IDE inspection fixes. 2019-12-06 18:57:50 -06:00
Buster "Silver Eagle" Neece bd42b64de0
Add spaces to phpdoc blocks and optimize imports. 2019-09-20 11:44:38 -05:00
Buster "Silver Eagle" Neece daf78fa738
Move Settings and Logging to static system-wide functions. 2019-09-12 00:31:01 -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 513d04f7d2
Code cleanup! 2019-09-04 13:00:51 -05:00
Buster Neece 6b37231f42
Add display and API tracking of listeners per-mount/relay; filter listeners globally. 2019-08-10 23:17:06 -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 f3e411beb9
Abstract error logging and ignore some errors when deleting stations. 2019-07-10 18:34:45 -05:00
Buster Neece b9e821debd Switch logging to be managed/rotated by Supervisord.
Rationale: under the current system, Supervisord simply pipes its per-process logs out to stdout/stderr on Docker, meaning it has no ability to read back those logs in the case of an error, leading to cryptic error messages like "SPAWN_ERROR" instead of the actual problem. This refactors the logging to be handled by Supervisord, which also is itself capable of log rotation (removing the need for AzuraCast to rotate radio software logs).
2019-03-07 20:01:51 -06:00
Buster Neece c562a13e44 Make error messages from Supervisor a little friendlier. 2019-03-04 22:33:31 -06:00
Buster "Silver Eagle" Neece 8a6701403a Code and PHPDoc cleanup to green-light level 2 static analysis. 2019-01-31 11:54:17 -06:00
Buster "Silver Eagle" Neece c26f6e980c Refactor class names, #1065 allow reinstallation of SHOUTcast. 2019-01-03 02:30:56 -06:00