- Added support to PHP 8.3;
- Droped support to PHP 8.0;
- Added dependency to PHP dotenv;
- Added
consts
file in project root directory. This is a PHP file to starts
application constants. Constants inconsts
file:APP_PATH
constant with application files path to replaces
'APP_PATH' configuration key;CACHE_DIR
constant with path of the directory where cache files are
saved;CONFIG_DIR
constant with configuration files path to replaces
'CONFIG_PATH' configuration key;PROJECT_ROOT
constant with project root path to replaces
'PROJECT_PATH' configuration key;VAR_DIR
constant with path of the var directory where cache and
variable files are saved to replaces 'VAR_PATH' configuration key;WEB_ROOT
constant with web server root path to replaces 'ROOT_PATH'
configuration key;
- Added
network
configuration file (conf/network.php
); - Added:
Springy\Session::saveToDB()
function;Springy\Session::saveToMC()
function;Springy\Utils\SoapClient
class;Springy\Utils\WsseAuthHeader
class;
- New helper functions:
app_codename()
- returns the value fromAPP_CODE_NAME
constant
defined inconsts
or the value in old configuration
'PROJECT_CODE_NAME' atsysconf.php
;app_name()
- returns the value fromAPP_NAME
constant defined in
consts
or the value in old configuration 'SYSTEM_NAME' at
sysconf.php
;app_path()
- returns the application path. Use this function
instead ofKernel::path(Kernel::PATH_APPLICATION)
;app_version()
- returns the value fromAPP_VERSION
constant defined
inconsts
or the value in old configuration 'SYSTEM_VERSION' at
sysconf.php
;cache_dir()
- returns the path for the cache directory;config_dir()
- returns the configuration path. Use this function
instead ofKernel::path(Kernel::CONFIG_PATH)
;env()
- returns the value of an environment variable. Use this
function instead of PHP'sgetenv()
function or$_GET
superglobal to
get environment variables;migration_dir()
- returns the migfration scripts directory path. Use
this function instead ofKernel::path(Kernel::PATH_MIGRATION)
;project_path()
- returns the project root path. Use this function
instead ofKernel::path(Kernel::PATH_PROJECT)
;var_dir()
- returns the var files path. Use this function
instead ofKernel::path(Kernel::VAR_PATH)
.
- Added
env_by_host
configuration file to replace removed
'ENVIRONMENT_ALIAS' key fromsysconf.php
. - Added optional second parameters to
config_get()
helper function to
defines a default value; - Added PHPUnit test for
Utils\JSON
class; - Helpers functions script moved from web root directory to
springy/Core
directory; - Migration script
public/migration.php
moved to root directory and renamed
tomigrate
; - Command line script
public/cmd.php
moved to root directory and renamed to
cmd
; Kernel::controllerNamespace()
function now is readonly;URI::parseURI()
function now returns void;- Rafactored
Core\Debug
class; - Deprecated
sysconf.php
configuration file on web root directory. Use
consts
and.env
files in project root. - Deprecated controllers loading without namespace and with '.page.php'
extension for previously routing discovery; - Deprecated
_global.php
pre-controller load; - Deprecated classes:
DeepDir
;Soap_Client
- usesSpringy\Utils\SoapClient
;Springy\Security\AclUserInterface
;
- Deprecated constants:
Kernel::PATH_APPLICATION
(seeapp_path()
helper function);Kernel::PATH_CLASSES
;Kernel::PATH_CONF
(seeconfig_dir()
helper function);Kernel::PATH_CONTROLLER
;Kernel::PATH_LIBRARY
;Kernel::PATH_MIGRATION
(seemigration_dir()
helper function);Kernel::PATH_PROJECT
(seeproject_path()
helper function);Kernel::PATH_VAR
(seevar_dir()
helper function);Kernel::PATH_VENDOR
;Kernel::PATH_WEB_ROOT
;
- Deprecated functions:
sysconf()
- useenv()
helper function;Kernel::charset()
- useenv('CHARSET')
helper function;Kernel::path()
- use apropriated helper function or constant;Kernel::projectCodeName()
- useapp_codename()
helper function;Kernel::systemName()
- useapp_name()
helper function;Kernel::systemConfGlobal()
- useenv()
helper function;Kernel::systemVersion()
- useapp_version()
helper function;Session::_saveDbSession()
- useSession::saveToDB()
;Session::_saveMcSession()
- useSession::saveToMC()
;
- Removed configuration keys from
sysconf.php
(will be ignored if exists):- 'ACTIVE_ENVIRONMENT' - set the value in SPRINGY_ENVIRONMENT key at the
.env file; - 'CHARSET' - moved to .env file;
- 'CONSIDER_PORT_NUMBER' - already unused since v4.0;
- 'CONTROLER_PATH';
- 'CLASS_PATH';
- 'ENVIRONMENT_ALIAS' - transferred to
system.environment_by_host
default configuration file; - 'ENVIRONMENT_VARIABLE' - value fixed to "SPRINGY_ENVIRONMENT";
- 'ROOT_PATH';
- 'SPRINGY_PATH';
- 'TIMEZONE' - moved to .env file;
- 'VENDOR_PATH';
- 'ACTIVE_ENVIRONMENT' - set the value in SPRINGY_ENVIRONMENT key at the
- Deprecated configurations:
conf/soap.php
- see above:soap.timeout
moved tonetwork.soap.timeout
;
- Deprecated support to suffix '.conf' and '.default.conf' on configuration
files; - Removed constants:
Kernel::PATH_CONFIGURATION
;Kernel::PATH_ROOT
;Kernel::PATH_SYSTEM
;Kernel::PATH_CLASS
;
- Removed functions and methods:
springyAutoload
autoload function;Controller::_authorizationCheck()
deprecated at version 4.5;Controller::_forbidden()
deprecated at version 4.5;Controller::_pageNotFound()
deprecated at version 4.5;Controller::_redirect()
deprecated at version 4.5;Controller::_template()
deprecated at version 4.5;Controller::_userSpecialVerifications()
deprecated at version 4.5;Utils\JSON::getDados()
deprecated at version 4.4;Utils\JSON::printJ()
deprecated at version 4.4;with()
helper function;
- Removed classes:
CreditCardValidation
;Log
;Utils\Excel
;Utils\ZipFile
;
- Removed configuratios:
uri.host_controller_path
;uri.redirects
;uri.routes
.
- PHPUnit class upgraded to v10.5;
- Droped code quality checking with StyleCI,
Travis and
Codacy (thank you for everything).