Releases: zaphyr-org/framework
Releases · zaphyr-org/framework
🔥 v1.0.0-alpha.8
New:
- Added
--singleoption tocreate:controllercommand for single action controllers - Added ignore paths to CSRFMiddleware
- Added default fallback ExceptionHandler instance to ExceptionBootProvider
- Added unit tests for AbstractPlugin class
- Added GitHub Actions workflow
Changed:
- Type-hinted JsonResponse data to
arrayandJsonSerializable - Improved routes list command
- Added default Response object to HttpException::buildJsonResponse
- Updated zaphyr-org/utils to v2.3
Removed:
- Removed XSSMiddleware
Fixed:
- Fixed merging for plugin class types
- Fixed ignore logging report config in ExceptionHandler
- Fixed format bool value in config list command
🔥 v1.0.0-alpha.7
New:
- Added cache paths methods to Application class
- Added
ApplicationRegistryclass - Added ApplicationRegistry to ConfigBootProvider
- Added
CacheServiceProviderclass - Added cache usage in service providers
- Added cache and clear console commands
- Integrated plugin functionality in ApplicationRegistry class
Changed:
- Integrated ApplicationRegistry in framework-bootable providers
- Restructured config settings and improved unit tests
🔥 v1.0.0-alpha.6
New:
- Added singleton pattern to Application class
Changed:
- Updated zaphyr-org/session to v1.1 and removed fixed phpstan error from ignore list
- Moved application path in own ApplicationPathResolver class
- Improved configuration loading
- Added AbstractServiceProvider to framework and improved framework providers
Fixed:
- Improved performance and readability
🔥 v1.0.0-alpha.5
Fixed:
- Removed GLOB_BRACE from ConfigBootProvider class
- Removed PHP 8.4 deprecations
🔥 v1.0.0-alpha.4
New:
- Added bin path to config path resolver
- Added
handleRequestandhandleCommandmethods to Application class
Changed:
- Changed
Application::getVersionmethod from static to non-static - Improved Application project path handling
🔥 v1.0.0-alpha.3
New:
- Added bin path to Application class
Changed:
- Renamed "logs" commands to "log" and "routes" command to "router"
- Updated zaphyr-org/config to v2.3
- Changed app source code directory from "src" to "app"
Fixed:
- Fixed path for router list command in phpstan.neon
🔥 v1.0.0-alpha.2
Fixed:
- Fixed
Zaphyr\Framework\Providers\SessionServiceProvidercookie domain and session name config - Changed
getRootPathtogetConfigPathinZaphyr\Framework\Providers\Bootable\ConfigBootProvider::loadConfigItems - Bind default important interfaces to Application instance in
Zaphyr\Framework\Testing\AbstractTestCaseclass
🔥 v1.0.0-alpha.1
New:
- Initial commit
- Added HTTP StatusCode class
- Added HTTP Response class
- Added HTTP EmptyResponse class
- Added HTTP RedirectResponse class
- Added HttpUtils class
- Added HTTP TextResponse class
- Added HTTP HtmlResponse class
- Added HTTP XmlResponse class
- Added HTTP JsonResponse class
- Added HTTP Request class
- Added HttpException class
- Added Application class
- Added ConfigBootProvider and config PathReplacer classes
- Added EnvironmentBootProvider class
- Added RouterBootProvider class
- Added RegisterServicesBootProvider class
- Added items to provide section in composer.json
- Added HttpKernel class
- Added TwigView class
- Added TwigRuntimeLoader class
- Added
isTestingEnvironmentmethod to Application class - Added WhoopsDebugHandler class
- Added ExceptionHandler class
- Added IntegrationTestCase class
- Added ViewServiceProvider class
- Added EncryptServiceProvider class
- Changed visibility to protected for
setUpand `tearDown methods in unit tests - Added LogServiceProvider class
- Added SessionServiceProvider class
- Added CookieServiceProvider class
- Added 'hasSession' and 'getSession' methods to HTTP Request class
- Added CookieMiddleware class
- Added SessionMiddleware class
- Added twig view extensions
- Added XSSMiddleware class
- Added
isRunningInConsolemethod to Application class - Added session twig view extension
- Added CSRF twig view extension
- Added CSRFMiddleware class
- Added ConsoleKernel class
- Added app:environment command class
- Added config console commands
- Added views:clear console command class
- Added logs:clear console command class
- Added cache:clear console command class
- Added framework commands to ConsoleKernel class
- Added app:key console command class
- Added create console commands
- Added maintenance console commands
- Added events
- Added event and listener create console commands
- Added
.vscodeto .gitignore file - Added HttpTestCase
- Added ConsoleTestCase
- Added initBindings, runHttpRequest and runConsoleCommand methods to Application class
- Added getAppPath and setAppPath methods to Application class
- Added getVersion method to Application class
- Added logger v2.1.0 with NoopHandler in LoggingServiceProvider
- Added list routes command
- Improved unit tests for console ClearCommand classes
Changed:
- Improved HTTP response classes unit tests
- Improved HttUtils::normalizeFiles method
- Improved HTTP exceptions
- Used StatusCode constants in HTTP response classes
- Moved unit tests in
tests/Unitdirectory - Changed visibility to public for
bootstrapmethod in HttpKernel class - Splitted testsuites in Integration and Unit in phpunit.xml
- Refactored ExceptionHandler class and errors/fallback.html
- Improved XSSMiddleware class exception handling
- Updated zaphyr-org/config to v2.2
- Move providers config to services "namespace"
- Moved code in try block for HttpKernel class
- Refactored console clear commands
- Refactored config files
- Renamed "templates" directory to "views" directory
- Moved "Commands" namespace into "Console" namespace
- Improved error handling for create console commands
- Improved exception handling
- Improved unit tests
- Updated README.md
- Improved framework testing classes
- Improved configuration handling
- Major improvements on service providers
- Limitation to NEON config files reversed
- Added "abstract" keyword to AbstractClearCommand and AbstractCommand class
- Updated README.md
Removed:
- Removed psr/http-message from require section in composer.json
- Removed phpstan/phpstan-phpunit from composer require-dev
- Removed view layer from framework
- Removed extension create command
- Removed ExtensionCommandTest
- Removed useless
JSON_ERROR_NONE !== json_last_error()throw statement in JsonResponse class - Removed initBindingsOverwrite, runHttpRequest method and runConsoleCommand method from Application class
Fixed:
- Added missing FrameworkException class
- Fixed IntegrationTestCase container return type
- Moved
bootstrapmethod outside of try block in ConsoleKernel class - Fixed namespaces and strict_types in test classes
- Fixed dontReport config loading in ExceptionHandler class
- Moved
filp/whoopstorequiresection in composer.json - Renamed property
$sessionHandlerto$sessionHandlerMockin SessionMiddlewareTest - Fixed namespace in command.stub
- Improved tests for RouterBootProvider class
- RequestTrait::call method handles slash correctly