Skip to content

v4.6.0

Latest
Compare
Choose a tag to compare
@fernandoval fernandoval released this 01 Jun 13:41
fe4ec03
  • 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 in consts 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 from APP_CODE_NAME constant
      defined in consts or the value in old configuration
      'PROJECT_CODE_NAME' at sysconf.php;
    • app_name() - returns the value from APP_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 of Kernel::path(Kernel::PATH_APPLICATION);
    • app_version() - returns the value from APP_VERSION constant defined
      in consts 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 of Kernel::path(Kernel::CONFIG_PATH);
    • env() - returns the value of an environment variable. Use this
      function instead of PHP's getenv() function or $_GET superglobal to
      get environment variables;
    • migration_dir() - returns the migfration scripts directory path. Use
      this function instead of Kernel::path(Kernel::PATH_MIGRATION);
    • project_path() - returns the project root path. Use this function
      instead of Kernel::path(Kernel::PATH_PROJECT);
    • var_dir() - returns the var files path. Use this function
      instead of Kernel::path(Kernel::VAR_PATH).
  • Added env_by_host configuration file to replace removed
    'ENVIRONMENT_ALIAS' key from sysconf.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
    to migrate;
  • 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 - uses Springy\Utils\SoapClient;
    • Springy\Security\AclUserInterface;
  • Deprecated constants:
    • Kernel::PATH_APPLICATION (see app_path() helper function);
    • Kernel::PATH_CLASSES;
    • Kernel::PATH_CONF (see config_dir() helper function);
    • Kernel::PATH_CONTROLLER;
    • Kernel::PATH_LIBRARY;
    • Kernel::PATH_MIGRATION (see migration_dir() helper function);
    • Kernel::PATH_PROJECT (see project_path() helper function);
    • Kernel::PATH_VAR (see var_dir() helper function);
    • Kernel::PATH_VENDOR;
    • Kernel::PATH_WEB_ROOT;
  • Deprecated functions:
    • sysconf() - use env() helper function;
    • Kernel::charset() - use env('CHARSET') helper function;
    • Kernel::path() - use apropriated helper function or constant;
    • Kernel::projectCodeName() - use app_codename() helper function;
    • Kernel::systemName() - use app_name() helper function;
    • Kernel::systemConfGlobal() - use env() helper function;
    • Kernel::systemVersion() - use app_version() helper function;
    • Session::_saveDbSession() - use Session::saveToDB();
    • Session::_saveMcSession() - use Session::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';
  • Deprecated configurations:
    • conf/soap.php - see above:
      • soap.timeout moved to network.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).