Skip to content

Commit

Permalink
Ported the main app to Flight (#88)
Browse files Browse the repository at this point in the history
* Ported the main app to Flight

* Made PHPStan happy

* Removed AntRouting

* Renamed many internal classes

* Caching related optimization

* Skip the cache test

* Update readme.md
  • Loading branch information
BelleNottelling authored Apr 20, 2024
1 parent d660b70 commit 711c7dc
Show file tree
Hide file tree
Showing 32 changed files with 376 additions and 435 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
->in(__DIR__)
->exclude([
'src/Vendor',
'src/Cache',
])
;

Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"elgigi/commonmark-emoji": "^2.0",
"embed/embed": "^4.4",
"flightphp/core": "^3.8",
"hostbybelle/compressionbuffer": "^1.0",
"league/commonmark": "^2.3",
"nyholm/psr7": "^1.8",
"shapecode/twig-string-loader": "^1.1",
Expand All @@ -22,6 +23,9 @@
"symfony/yaml": "^6.0",
"twig/twig": "^3.5"
},
"replace": {
"symfony/polyfill-mbstring": "*"
},
"authors": [
{
"name": "Belle Aerni",
Expand Down
187 changes: 106 additions & 81 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
analyse:
- src/Vendor
- src/Cache
- src/AntCMS/AntKeywords.php
- src/Plugins
ignoreErrors:
- '#^Call to an undefined method AntCMS\\AntCache\:\:get\(\)\.$#'
- '#^Call to an undefined method AntCMS\\AntCache\:\:purge\(\)\.$#'
- '#^Call to an undefined method AntCMS\\Cache\:\:get\(\)\.$#'
- '#^Call to an undefined method AntCMS\\Cache\:\:purge\(\)\.$#'
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# AntCMS

AntCMS is being largely rebuilt for better, faser, easier functionality.
AntCMS is being largely rebuilt for better, faser, easier functionality.

## Differences between "new" and "main"

- The main app now uses Flight for routing
- Optimizations
- Much improved code stylining and code quality
- Plugins do not yet work as they need to be rebuilt
- AntCMS will automatically perform brotli, zstd, and gzip output compression as long as related extensions are installed
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
__DIR__ . '/tests',
])
->withSkipPath(__DIR__ . '/src/Vendor')
->withSkipPath(__DIR__ . '/src/Cache')
->withDeadCodeLevel(42)
->withTypeCoverageLevel(37)
->withPhpSets();
Loading

0 comments on commit 711c7dc

Please sign in to comment.