All Versions
100
Latest Version
Avg Release Cycle
58 days
Latest Release
394 days ago

Changelog History
Page 2

  • v4.0.0-rc.1 Changes

    September 23, 2019

    โž• Added

    • โž• Added optional boolean parameter to Phalcon\Http\Request::getURI() (as well as its interface) which indicates whether or not the method should return only the path without the query string

    ๐Ÿ”„ Changed

    • ๐Ÿ”„ Changed Phalcon\Url::get to use implementation behind Phalcon\Helper\Str::reduceSlashes to reduce slashes #14331
    • ๐Ÿ”„ Changed Phalcon\Http\Headers\set() to return self for a more fluent interface
    • ๐Ÿ”’ Changed Phalcon\Assets\Manager, Phalcon\Cli\Router, Phalcon\Dispatcher\AbstractDispatcher, Phalcon\Html\Tag, Phalcon\Http\Cookie, Phalcon\Http\Request, Phalcon\Http\Response\Cookies, Phalcon\Mvc\Model, Phalcon\Mvc\Router, Phalcon\Security, Phalcon\Session\Manager to use Phalcon\Di\AbstractDiAware for container functionality #14351
    • ๐Ÿ”’ Changed Phalcon\Security to allow session and request in the constructor #14351
    • ๐Ÿ”„ Changed Phalcon\Session\Manager to allow router in the constructor #14351
    • ๐Ÿ”„ Changed Phalcon\Flash\Direct to allow escaper in the constructor #14349
    • ๐Ÿ”„ Changed Phalcon\Flash\Session to allow escaper in the constructor #14349
    • ๐Ÿ”„ Changed Phalcon\Di\AbstractDIAware to Phalcon\Di\AbstractInjectionAware #14359
    • ๐Ÿ”„ Changed Phalcon\Di\Service to use DI to initialize string based services when possible #14342
    • ๐Ÿ”„ Changed Phalcon\Mvc\Router\Annotations to be able to handle patterns az prefixes #14259
    • ๐Ÿ”„ Changed Phalcon\Mvc\Router\Group::routes to an array as default #14259
    • ๐Ÿ”„ Changed Phalcon\Mvc\Model::assign changed order of parameters to $data, $whiteList, $dataColumnMap #14386
    • ๐Ÿ”„ Changed Phalcon\Helper\Arr::arrayToObject to toObject #14389
    • ๐Ÿ”„ Changed Phalcon\Events\EventsAwareInterface::getEventsManager and Phalcon\Di\Injectable::getEventsManager to return also null #14404
    • ๐Ÿ”„ Changed Phalcon\Logger\Adapter\AbstractAdapter::add to now return this #14404
    • ๐Ÿ”„ Changed Phalcon\Mvc\RouterInterface methods signature to return RouteInterface instead of void:
      • Phalcon\Mvc\RouterInterface::setDefaultAction
      • Phalcon\Mvc\RouterInterface::setDefaultAction
      • Phalcon\Mvc\RouterInterface::setDefaultController
      • Phalcon\Mvc\RouterInterface::setDefaultModule
      • Phalcon\Mvc\RouterInterface::setDefaults
    • ๐Ÿ”„ Changed return types for following interfaces:
      • Phalcon\Mvc\Router\RouteInterface::setName from void to RouteInterface
      • Phalcon\Mvc\Router\RouteInterface::via from void to RouteInterface
      • Phalcon\Session\ManagerInterface::__get from void to var

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed Phalcon\Helper\Str::includes to return correct result #14301
    • ๐Ÿ›  Fixed Phalcon\Logger moved to correct namespace #14263
    • ๐Ÿ›  Fixed Phalcon\Session\Adapter\AbstractAdapter::read() to return ""(empty string) when Session/Adapter/*::get() returns null #14314
    • ๐Ÿ›  Fixed Phalcon\Cache\Exception to extend Phalcon\Exception
    • ๐Ÿ›  Fixed Phalcon\Cache\InvalidArgumentException to extend Phalcon\Exception
    • ๐Ÿ›  Fixed Phalcon\Collection\Exception to extend Phalcon\Exception
    • ๐Ÿ›  Fixed Phalcon\Storage\Adapter\AbstractAdapter::initSerializer to throw exception if null === $this->serializerFactory && null === $this->serializer #14324
    • ๐Ÿ›  Fixed Phalcon\Storage\Adapter\Redis::getAdapter() to provide a persistent id for redis persistent connection #14334
    • ๐Ÿ›  Fixed Phalcon\Session\Adapter\Stream to not override configured save path #14265
    • ๐Ÿ›  Fixed Phalcon\Http\Response::setFileToSend to properly handle non-ASCII filenames #13919
    • ๐Ÿ›  Fixed Phalcon\Security::getSessionToken return value #14346
    • ๐Ÿ›  Fixed Phalcon\Flash\* interfaces for message() to return string/null #14349
    • ๐Ÿ›  Fixed Phalcon\Paginator\Adapter\AbstractAdapter throw exception if limit <= 0 #14303
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model\Query\Builder Empty table alias in query #14366
    • ๐Ÿ›  Fixed Phalcon\Db\Adapter\PdoFactory to reference the correct interface #14381
    • ๐Ÿ›  Fixed Phalcon\Db\Dialect\Mysql Fixed missing schema in constraint for create table #14378
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model::hasChanged() and getChangedFields() returning false values when castOnHydrate option is on. #14376
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model::create() Using write connection to prevent replica lag #14256
    • ๐Ÿ›  Fixed return types for following methods to satisfy interface declaration:
      • Phalcon\Acl\Adapter\AbstractAdapter::setDefaultAction
      • Phalcon\Application\AbstractApplication::setEventsManager
      • Phalcon\Firewall\Adapter\AbstractAdapter::setAlwaysResolvingRole
      • Phalcon\Firewall\Adapter\AbstractAdapter::setEventsManager
      • Phalcon\Mvc\Router::handle
      • Phalcon\Storage\Serializer\AbstractSerializer::getData
      • Phalcon\Storage\Serializer\AbstractSerializer::setData
      • Phalcon\Mvc\Dispatcher::forward
      • Phalcon\Mvc\Model::setConnectionService
      • Phalcon\Mvc\Model::setReadConnectionService
      • Phalcon\Mvc\Model::setWriteConnectionService
      • Phalcon\Mvc\Model\Query\Builder::setDI
      • Phalcon\Mvc\Router\Annotations::handle
      • Phalcon\Session\Bag::set
      • Phalcon\Session\Manager::remove
    • ๐Ÿ›  Fixed Phalcon\Di::remove() to remove service. #14396

    โœ‚ Removed

    • โœ‚ Removed Phalcon\Plugin - duplicate of Phalcon\DI\Injectable #14359
    • โœ‚ Removed Phalcon\Mvc\Collection and all related references. 4.0 will not support mongo as it is being re-implemented to take advantage of the latest Mongo driver (see #13697) #14361
    • โœ‚ Removed Phalcon\Session\Manager::registerHandler - duplicate functionality #14381
    • โœ‚ Removed Phalcon\Html\Tag - duplicate functionality #14381
    • โœ‚ Removed void return type for all constructors #14401
  • v4.0.0-beta.2 Changes

    August 18, 2019

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed missing imports in Phalcon\Db\Adapter\AbstractAdapter, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Db\Result\Pdo, Phalcon\Html\Tag and Phalcon\Tag\Select. #14249
    • ๐Ÿ›  Fixed isSerializable in Phalcon\Storage\Serializer\AbstractSerializer to return true when the data is seriazable and false when it's not.
    • ๐Ÿ›  Fixed Phalcon\Storage\Adapter\Redis::delete() and Phalcon\Storage\Adapter\Redis::getKeys() deprecated warning from php-redis #14281
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model\ResultSet::Update() to return correct status #14291
    • Phalcon\Mvc\Collection::cancelOperation() now returns true on success.
    • ๐Ÿ›  Fixed Phalcon\Application\AbstractApplication interfaces for registerModules(), setDefaultModule() and setEventsManager() #14293
    • ๐Ÿ›  Fixed Phalcon\Paginator\Adapter\QueryBuilder to throw exception on incorrect parameter #14299

    โœ‚ Removed

    • โœ‚ Removed dead libsodium-related code. It was never called in PHP >= 7.0.
  • v4.0.0-beta.1 Changes

    July 14, 2019

    โž• Added

    • โž• Added Phalcon\Factory\Exception for factory exceptions. #13672
    • โž• Added Phalcon\Filter\FilterInterface for custom filter implementations. #13672
    • โž• Added Phalcon\Db\Adapter\PdoFactory: Factory to create PDO adapters. #13672
    • โž• Added Phalcon\Image\ImageFactory: Factory to create image adapters. #13672
    • โž• Added Phalcon\Logger\LoggerFactory: Factory to create logger objects. #13672
    • โž• Added Phalcon\Translate\InterpolatorFactory: Factory to create interpolator objects. #13672
    • โž• Added Phalcon\Translate\TranslateFactory: Factory to create translate objects. #13672
    • โž• Added Phalcon\Domain\Payload to help in transferring messages between layers of the application. #14123
    • โž• Added Phalcon\Domain\PayloadFactory: Factory to create payload objects. #14123
    • โž• Added Phalcon\Http\Message\ServerRequestFactory::load: Method to create a ServerRequest object from globals. #14154
    • โž• Added saslAuthData as option to Phalcon\Storage\Adapter\Libmemcached to authenticate using SASL #13394
    • โž• Added Phalcon\Collection\ReadOnly: Read only collection. #14154
    • โž• Added whiteList() to Phalcon\Helper\Arr #13954
    • โž• Added Phalcon\Config\ConfigFactory::newInstance(): Factory to create config objects. #13201, #13768
    • โž• Added Phalcon\Db\Enum #14213
    • โž• Added Phalcon\Dispatcher\Exception #14213

    ๐Ÿ”„ Changed

    • ๐Ÿ“‡ Renamed Phalcon\Annotations\Adapter\Files to Phalcon\Annotations\Adapter\Stream. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Annotations\Adapter to Phalcon\Annotations\Adapter\AbstractAdapter. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Annotations\AdapterInterface to Phalcon\Annotations\Adapter\AdapterInterface. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Annotations\Factory to Phalcon\Annotations\AnnotationsFactory. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Config\Factory to Phalcon\Config\ConfigFactory. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Filter\FilterLocator to Phalcon\Filter. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Filter\FilterLocatorFactory to Phalcon\Filter\FilterFactory. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Image\Adapter to Phalcon\Image\Adapter\AbstractAdapter. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Image\AdapterInterface to Phalcon\Image\Adapter\AdapterInterface. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Paginator\Adapter to Phalcon\Paginator\Adapter\AbstractAdapter. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Paginator\AdapterInterface to Phalcon\Paginator\Adapter\AdapterInterface. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Paginator\Factory to Phalcon\Paginator\PaginatorFactory. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Translate\Adapter to Phalcon\Translate\Adapter\AbstractAdapter. #13672
    • ๐Ÿ“‡ Renamed Phalcon\Translate\AdapterInterface to Phalcon\Translate\Adapter\AdapterInterface. #13672
    • ๐Ÿ”Œ Phalcon\Plugin is now abstract.
    • ๐Ÿšš Moved method parameter in Phalcon\Mvc\Model\Manager::getRelationRecords() to the last position. #14115
    • ๐Ÿšš Moved method parameter in Phalcon\Mvc\Model\Manager::getBelongsToRecords() to the last position. #14115
    • ๐Ÿšš Moved method parameter in Phalcon\Mvc\Model\Manager::getHasOneRecords() to the last position. #14115
    • ๐Ÿšš Moved method parameter in Phalcon\Mvc\Model\Manager::getHasManyRecords() to the last position. #14115
    • ๐Ÿšš Validator messages were moved into each validator. #13208
    • Phalcon\Paginator\Repository::getProperty() now uses Phalcon\Helper\Arr::get().
    • โ™ป๏ธ Refactored Phalcon\Collection to allow conditional key case sensitivity. #14154
    • โ™ป๏ธ Refactored Phalcon\Registry to align with the Phalcon\Collection interface. #14154
    • 0๏ธโƒฃ Phalcon\Mvc\Micro::setModelBinder() now uses the Factory Default DI if none is set. #14171
    • ๐Ÿ‘• Phalcon\Mvc\Model\ValidationFailed now works with ModelInterface.
    • โ™ป๏ธ Refactored Phalcon\Config to extend Phalcon\Collection #13201, #13768
    • ๐Ÿ“‡ Renamed Phalcon\Config to extend Phalcon\Config\Config #13201, #13768
    • ๐Ÿ“‡ Renamed Phalcon\Acl to Phalcon\Acl\Enum #14213
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter to Phalcon\Acl\Adapter\AbstractAdapter #14213
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface to Phalcon\Acl\Adapter\AdapterInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\Application to Phalcon\Application\AbstractApplication #14213
    • ๐Ÿ“‡ Renamed Phalcon\CryptInterface to Phalcon\Crypt\CryptInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\Db\Adapter to Phalcon\Db\Adapter\AbstractAdapter #14213
    • ๐Ÿ“‡ Renamed Phalcon\Db\AdapterInterface to Phalcon\Db\Adapter\AdapterInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\Db to Phalcon\Db\AdapterDb #14213
    • ๐Ÿ“‡ Renamed Phalcon\Db\Adapter\Pdo to Phalcon\Db\Adapter\Pdo\AbstractPdo #14213
    • ๐Ÿ“‡ Renamed Phalcon\Dispatcher to Phalcon\Dispatcher\AbstractDispatcher #14213
    • ๐Ÿ“‡ Renamed Phalcon\DispatcherInterface to Phalcon\Dispatcher\DispatcherInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\EscaperInterface to Phalcon\Escaper\EscaperInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\Firewall\Adapter to Phalcon\Firewall\Adapter\AbstractAdapter #14213
    • ๐Ÿ“‡ Renamed Phalcon\Firewall\AdapterInterface to Phalcon\Firewall\Adapter\AdapterInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\Flash to Phalcon\Flash\AbstractFlash #14213
    • ๐Ÿ“‡ Renamed Phalcon\FlashInterface to Phalcon\Flash\FlashInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\Forms\Element to Phalcon\Forms\Element\AbstractElement #14213
    • ๐Ÿ“‡ Renamed Phalcon\Forms\ElementInterface to Phalcon\Forms\Element\ElementInterface #14213
    • ๐Ÿ“‡ Renamed Phalcon\Image to Phalcon\Image\Enum #14213
    • ๐Ÿ“‡ Renamed Phalcon\Mvc\View\Engine to Phalcon\Mvc\View\Engine\AbstractEngine #14213
    • ๐Ÿ“‡ Renamed Phalcon\Mvc\View\EngineInterface to Phalcon\Mvc\View\Engine\EngineInterface #14213
    • ๐Ÿ‘• Renamed Phalcon\UrlInterface to Phalcon\Url\UrlInterface
    • ๐Ÿ“‡ Renamed Phalcon\Validator to Phalcon\Validator\Validator #14213
    • ๐Ÿ“‡ Renamed Phalcon\Validator\Validator to Phalcon\Validator\AbstractValidator #14213
    • ๐Ÿ“‡ Renamed Phalcon\Validator\ValidatorComposite to Phalcon\Validator\AbstractValidatorComposite #14213
    • ๐Ÿ“‡ Renamed Phalcon\Validator\CombinedFieldsValidator to Phalcon\Validator\AbstractCombinedFields #14213
    • ๐Ÿ“‡ Renamed Phalcon\Validator\Validator\File\FileAbstract to Phalcon\Validator\Validator\File\AbstractFile #14213

    ๐Ÿ›  Fixed

    • Fixed Phalcon\Mvc\View::getRender() to call view->finish() instead of ob_end_clean(). #14095
    • ๐Ÿ›  Fixed Phalcon\Cache\Adapter\Libmemcached failing to set values when Phalcon\Mvc\Model\MetaData\Libmemcached was in use. #14100
    • ๐Ÿ›  Fixed Phalcon\Db\Column to recognize tinyint, smallint, mediumint, integer as valid autoIncrement columns. #14102
    • ๐Ÿ›  Fixed method parameter in Phalcon\Mvc\Model\Manager::getRelationRecords(), it's not always a string, null by default. #14115
    • ๐Ÿ›  Fixed method parameter in Phalcon\Mvc\Model\Manager::getBelongsToRecords(), it's not always a string, null by default. #14115
    • ๐Ÿ›  Fixed method parameter in Phalcon\Mvc\Model\Manager::getHasOneRecords(), it's not always a string, null by default. #14115
    • ๐Ÿ›  Fixed method parameter in Phalcon\Mvc\Model\Manager::getHasManyRecords(), it's not always a string, null by default. #14115
    • ๐Ÿ›  Fixed handlers property in Phalcon\Mvc\Micro\Collection to now always an array.
    • ๐Ÿ›  Fixed crash in Phalcon\Mvc\Model::save() when saving a circular model relation. #13354
    • ๐Ÿ›  Fixed Phalcon\Db\Dialect\Postgresql::truncateTable() to now escape table names. #14125
    • Fixed Phalcon\Mvc\Model\MetaData::write() to throw an exception if orm.exception_on_failed_metadata_save is set to true. #13433
    • ๐Ÿ›  Fixed Phalcon\Image\Adapter\Gd to throw an error with imagecolorat. #14139
    • Phalcon\Mvc\Model\Criteria::limit() now corrects negative offsets.
    • 0๏ธโƒฃ Phalcon\Di\FactoryDefault\Cli can now use the new Filter system.
    • ๐Ÿ›  Fixed Phalcon\Mvc\Router now parses and uses path. #14087
    • ๐Ÿ›  Fixed various areas in Phalcon\Acl\Adapter and Phalcon\Acl\Adapter\Memory including comments, logic, denyComponentAccess and AdapterInterface. Added tests. #13870
    • ๐Ÿ›  Fixed Phalcon\Config::merge() not merging numeric values properly #13201, #13768
    • ๐Ÿ›  Fixed Phalcon\Validation\Validator\File\AbstractFile missing the resolution of the value property #14198
    • ๐Ÿ›  Fixed Phalcon\Storage\Adapter\Stream #14190
    • Phalcon\Form\Form::clear() now correctly clears single fields. #14217
    • ๐Ÿ›  Fixed Phalcon\Form\Form::getValue() not to call getAttributes() when an element is named "attributes" #14226
    • ๐Ÿ›  Fixed Phalcon\Model::delete() array to string conversion #14080
    • ๐Ÿ›  Fixed segfault in Phalcon\Mvc\Micro\LazyLoader::callMethod() when handler contains syntax error.

    โœ‚ Removed

    • โœ‚ Removed Phalcon\Session\Factory. #13672
    • โœ‚ Removed Phalcon\Factory and Phalcon\FactoryInterface. #13672
    • โœ‚ Removed Phalcon\Translate. #13672
    • โœ‚ Removed Phalcon\Db\Column::getSchemaName() as its not relevant or settable.
    • Removed Phalcon\Config::__set_state() as it does not serve any purpose and skipped the constructor. #13201, #13768
    • Removed Phalcon\Annotations\Reflection::__set_state(), Phalcon\Db\ColumnInterface::__set_state(), Phalcon\Db\Column::__set_state(), Phalcon\Db\IndexInterface::__set_state(), Phalcon\Db\Index::__set_state(), Phalcon\Db\ReferenceInterface::__set_state(), Phalcon\Db\Reference::__set_state(), Phalcon\Di\ServiceInterface::__set_state(), Phalcon\Di\Service::__set_state(), Phalcon\Http\Response\HeadersInterface::__set_state(), Phalcon\Http\Response\Headers::__set_state(), Phalcon\Http\Request::__set_state(), Phalcon\Messages\Message::__set_state() #14212
  • v4.0.0-alpha.5 Changes

    May 18, 2019

    โž• Added

    • โž• Added Phalcon\Cli\Router\Route::setDescription() to sets the route's description #13936
    • โž• Added Phalcon\Cli\Router\Route::getDescription() returns the route's description #13936
    • โž• Added Phalcon\Image\Adapter\Gd::getVersion().
    • โž• Added chunk(), first(), firstKey(), flatten(), group(), isUnique(), last(), lastKey(), order(), pluck(), sliceLeft(), sliceRight(), split(), tail(), validateAll(), validateAny() to Phalcon\Helper\Arr #13954
    • โž• Added camelize(), concat(), countVowels(), decapitalize(), dynamic(), endsWith(), firstStringBetween(), includes(), increment(), isAnagram(), isLower(), isPalindrome(), isUpper(), lower(), random(), reduceSlashes(), startsWith(), uncamelize(), underscore(), upper() to Phalcon\Helper\Str #13954
    • โž• Added Phalcon\Mvc\Model\Query\BuilderInterface::getModels() returns the models involved in the query
    • โž• Added addConnect(), addPurge() and addTrace() to Phalcon\Mvc\Router\Group and its interface. #14001
    • โž• Added Phalcon\Mvc\Model\Transaction::throwRollbackException() which allows a transaction to throw an exception or not on a rollback. #13949
    • โž• Added Phalcon\Cache\Cache class implementing PSR-16. Introducing:
      • Phalcon\Cache\Adapter
      • Phalcon\Cache\Adapter\Apcu
      • Phalcon\Cache\Adapter\Libmemcached
      • Phalcon\Cache\Adapter\Memory
      • Phalcon\Cache\Adapter\Redis
      • Phalcon\Cache\Adapter\Stream
      • Phalcon\Cache\AdapterFactory: Factory to create adapters
      • Phalcon\Cache\CacheFactory: Factory to create cache objects
        #13439
    • โž• Added Str::dirSeparator() to ensure a path has a trailing slash #13439
    • โž• Added assets versioning Phalcon\Assets\Manager:addCss, Phalcon\Assets\Manager::addJs, Phalcon\Assets\Collection:addCss, Phalcon\Assets\Collection:addJs accepts two additional parameters - version and autoVersion#12591
    • Added setting orm.resultset_prefetch_records instructing the ORM (resultset) to prefetch the rows if the rows returned are less or equal to the setting. #13387
    • โž• Added Phalcon\Mvc\View::toString() to return the rendered view as a string #13825
    • โž• Added Phalcon\Helper\Arr::arrayToObject() to convert arrays to objects.
    • โž• Added Phalcon\Firewall component #13648
    • Added orm.cast_last_insert_id_to_int option for Phalcon\Mvc\Model::setup() (castLastInsertIdToInt) to cast the lastInsertId on save() to int #13002
    • โž• Added Attributes collection class like a new Html component #13646
    • โž• Added Attributes into Phalcon\Forms\Form #13646

    ๐Ÿ”„ Changed

    • โ™ป๏ธ Refactored Phalcon\Events\Manager to only use SplPriorityQueue to store events. #13924
    • Phalcon\Translate\InterpolatorInterface now only accepts placeholder arrays. #13939
    • Phalcon\Dispatcher::forward() and Phalcon\Dispatcher::setParams() now require an array as a parameter. #13935
    • ๐Ÿ‘ป CLI Routes with bad class names (eg. MyApp\\Tasks\\) now throw an exception instead of suppressing the error. #13936
    • โ™ป๏ธ Refactored Phalcon\Mvc\Collection\Behavior\SoftDelete and Phalcon\Mvc\Model\Behavior\SoftDelete. #13930
    • Model methods that extend Model Manager functionality are now final. #13950
    • ๐Ÿ”„ Changed Phalcon\Text to call methods from Phalcon\Helper\Str #13954
    • Setting the views directory no longer requires a trailing slash when using Simple View.
    • Phalcon\Mvc\View\Simple::viewParams is now always an array.
    • Phalcon\Mvc\View\Simple::render() params property is now always an array.
    • Phalcon\Mvc\Model\CriteriaInterface::limit() now takes offset as an integer. #13977
    • ๐Ÿ”„ Changed Phalcon\Mvc\Model\Manager::getModelSource() to use setModelSource() internally instead of setting the source manually #13987
    • The property options is always an array in Phalcon\Mvc\Model\Relation. #13989
    • Phalcon\Logger\Adapter\AbstractAdapter::process() is now actually abstract. #14012
    • ๐Ÿ‘• Phalcon\Mvc\ModelInterface::getRelated() return type declaration has changed (not always ResultsetInterface) #14035
    • In Phalcon\Mvc\Model, relations fetched using magic methods are now handled by Phalcon\Mvc\Model::getRelated() internally. #14035
    • ๐Ÿ”„ Changed Phalcon\Mvc\Model\Transaction::rollback() to not throw a transaction by default. #13949
    • ๐Ÿ”„ Changed Phalcon\Cache namespace and relevant classes to handle storing data to different stores. Introducing:
      • Phalcon\Storage\Serializer offering classes that implement the \Serializable interface.
      • Phalcon\Storage\Serializer\Base64
      • Phalcon\Storage\Serializer\Igbinary
      • Phalcon\Storage\Serializer\Json
      • Phalcon\Storage\Serializer\Msgpack
      • Phalcon\Storage\Serializer\None
      • Phalcon\Storage\Serializer\Php
      • Phalcon\Storage\Serializer\SerializerInterface
      • Phalcon\Storage\SerializerFactory: Factory to create serializers
      • Phalcon\Storage\Adapter offering classes that implement the Phalcon\Storage\Adapter\AdapterInterface interface.
      • Phalcon\Storage\Adapter\Apcu
      • Phalcon\Storage\Adapter\Libmemcached
      • Phalcon\Storage\Adapter\Memory
      • Phalcon\Storage\Adapter\Redis
      • Phalcon\Storage\Adapter\Stream
      • Phalcon\Storage\AdapterFactory: Factory to create adapters
        #13439
    • ๐Ÿ”„ Changed Phalcon\Mvc\Model\Query to not call numRows when selecting data #13387
    • Bind parameters and bind types are now always arrays in Phalcon\Mvc\Model\Query.
    • Changed Phalcon\Validation\Validator\Url to work with passed options. (FILTER_FLAG_PATH_REQUIRED, FILTER_FLAG_QUERY_REQUIRED) #13548
    • ๐Ÿ— Phalcon\Mvc\Model\Query\Builder will now omit offsets if they are set as 0.
    • Phalcon\Mvc\Model\Transaction::__construct() service parameter must be a string or omitted.
    • Phalcon\Logger\Formatter\Line::__construct() service parameters must be a string or omitted.
    • Phalcon\Logger\Formatter\Json::__construct() service parameters must be a string or omitted.
    • โœ‚ Removed deprecated code from Phalcon\Forms\Form::getMessages().
    • ๐Ÿ‘ป Loading a Module (either MVC or CLI) now throws an exception if the path does not exists regardless of whether the class is already loaded.
    • Changed Phalcon\Crypt to accept auth tag, tag length and data for "gcm" and "ccm" modes. Removed insecure algorithms with modes: des*, rc2*, rc4*, des*, *ecb #13869
    • ๐Ÿ“‡ Changed Phalcon\Mvc\Model to copy the unset default values from the MetaData to the Model after a successful insert. #13781
    • ๐Ÿ”„ Changed Phalcon\Mvc\Model::findFirst() now returns null. Phalcon\Mvc\Model::getRelated() for one to one relationships returns null #14044

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed Mvc\Collection::isInitialized() now works as intended. #13931
    • โšก๏ธ Update docblocks to show that we can no longer assign properties via save() in models (as per #12317). #13945
    • ๐Ÿ›  Fixed Mvc\Model and Mvc\ModelInterface findFirst to return ModelInterface or bool #13947
    • Phalcon\Acl\Adapter\Memory::dropComponentAccess() now properly unsets values.
    • Volt options 'separator' and 'extension' now work again. #13971
    • ๐Ÿ— Query Builder's GROUP BY field is now always an array. #13962
    • ๐Ÿ“š Renamed Phalcon\Paginator\Adapter::getPaginate() to paginate() in documentation/tests (originally renamed in 4.0.0-alpha.1). #13973
    • ๐Ÿ›  Fixed the exception message in Phalcon\Security::computeHmac() by removing "%s" from output.
    • Phalcon\Mvc\Model\Relation::isForeignKey() now returns false if the foreignKey option is set to false.
    • ๐Ÿ›  Fixed Phalcon\Flash\Session::output() not to throw an exception when there are no messages stored in session. #14023
    • ๐Ÿ›  Fixed Phalcon\Config\Adapter\Ini() to handle arrays correctly in .ini files. #14025
    • ๐Ÿ›  Fixed non-reusable relations in Phalcon\Mvc\Model, now returning fresh records. #13531
    • Phalcon\Mvc\Model::isRelationshipLoaded() is now working for every type of relations. #14035
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model::writeAttribute() to handle associative arrays correctly. #14021
    • ๐Ÿ›  Fixed Phalcon\Html\Tag::appendTitle() and Phalcon\Html\Tag::prependTitle()to mirror Phalcon\Tag. #14039
    • ๐Ÿ›  Fixed Phalcon\Validation::validate() with cancelOnFail. The validator will validate all elements and will stop processing validators on a per element basis if cancelOnFail is present. #13149
    • ๐Ÿ›  Fixed Phalcon\Mvc\Models\Manager::getRelations() to return the many-to-many relationships also. #10839
    • ๐Ÿ›  Fixed Phalcon\Validation\Validator\Numericality::validate() to parse non en locale numbers. #13843
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model::save() failing after a successful insert when default database fields are not updated. #13781

    โœ‚ Removed

    • โœ‚ Removed arrayHelpers property from the Volt compiler. #13925
    • โœ‚ Removed legacy (PHP <5.5) code from GD image adapter.
    • Removed support for HTTP_CONTENT_TYPE header (a bug in PHP 5). #14013
    • โœ‚ Removed Mvc\Model\MetaData\Session adapter (no longer supported) #13439
    • โœ‚ Removed Phalcon\Cache, Phalcon\Cache\Backend, Phalcon\Cache\BackendInterface, Phalcon\Cache\Backend\Apcu, Phalcon\Cache\Backend\Factory, Phalcon\Cache\Backend\File, Phalcon\Cache\Backend\Libmemcached, Phalcon\Cache\Backend\Memory, Phalcon\Cache\Backend\Mongo, Phalcon\Cache\Backend\Redis, Phalcon\Cache\Frontend, Phalcon\Cache\Frontend\Base64, Phalcon\Cache\Frontend\Data, Phalcon\Cache\Frontend\Factory, Phalcon\Cache\Frontend\Igbinary, Phalcon\Cache\Frontend\Json, Phalcon\Cache\Frontend\Msgpack, Phalcon\Cache\Frontend\None, Phalcon\Cache\Frontend\Output, Phalcon\Cache\FrontendInterface, Phalcon\Cache\Multiple #13439
    • โœ‚ Removed caching from the view (simple/view)
      • Phalcon\Mvc\View::cache()
      • Phalcon\Mvc\View::getCache()
      • Phalcon\Mvc\View\Simple::cache()
      • Phalcon\Mvc\View\Simple::getCache()
        #13439
    • โœ‚ Removed multiple Cache Adapter Phalcon\Cache\Multiple #13439
    • โœ‚ Removed old cache classes
      • Phalcon\Cache\Backend
      • Phalcon\Cache\BackendInterface
      • Phalcon\Cache\Backend\Apcu
      • Phalcon\Cache\Backend\Factory
      • Phalcon\Cache\Backend\File
      • Phalcon\Cache\Backend\Libmemcached
      • Phalcon\Cache\Backend\Memory
      • Phalcon\Cache\Backend\Mongo
      • Phalcon\Cache\Backend\Redis
      • Phalcon\Cache\Frontend
      • Phalcon\Cache\FrontendInterface
      • Phalcon\Cache\Frontend\Base64
      • Phalcon\Cache\Frontend\Data
      • Phalcon\Cache\Frontend\Factory
      • Phalcon\Cache\Frontend\Igbinary
      • Phalcon\Cache\Frontend\Json
      • Phalcon\Cache\Frontend\Msgpack
      • Phalcon\Cache\Frontend\None
      • Phalcon\Cache\Frontend\Output
        #13439
    • โœ‚ Removed model namespace aliases.
  • v4.0.0-alpha.4 Changes

    March 31, 2019

    โž• Added

    • โž• Added delimiter and enclosure options to Phalcon\Translate\Adapter\Csv constructor
    • โž• Added Phalcon\Http\Message\* namespace implementing PSR-7 and PSR-17. Introducing:
      • Phalcon\Http\Message\Request
      • Phalcon\Http\Message\RequestFactory
      • Phalcon\Http\Message\Response
      • Phalcon\Http\Message\ResponseFactory
      • Phalcon\Http\Message\ServerRequest
      • Phalcon\Http\Message\ServerRequestFactory
      • Phalcon\Http\Message\Stream
      • Phalcon\Http\Message\StreamFactory
      • Phalcon\Http\Message\UploadedFile
      • Phalcon\Http\Message\UploadedFileFactory
      • Phalcon\Http\Message\Uri
      • Phalcon\Http\Message\UriFactory
      • Phalcon\Http\Message\Stream\Input
      • Phalcon\Http\Message\Stream\Memory
      • Phalcon\Http\Message\Stream\Temp
        The implementation offers PSR-7/PSR-17 compatible components in a different namespace to allow usage of both Request and Response implementations for this version. #11789
    • โž• Added Phalcon\Helper\* namespace, offering easy manipulations for arrays, numbers etc..
      • Phalcon\Helper\Arr
      • Phalcon\Helper\Number
        #13889
    • โž• Added Phalcon\Collection, an object implementing ArrayAccess, Countable, IteratorAggregate, JsonSerializable, Serializable, offering an easy way to handle collections of data such as arrays, superglobals etc. #13886
    • โž• Added Phalcon\Collection, in Phalcon\Http\Message\Request and Phalcon\Http\Message\ServerRequest to handle the headers #13907

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed Phalcon\Image\Adapter\Imagick::_watermark, setImageAlpha() fills the alpha channel with black before execution (replaced by evaluateImage()). Improved imagick compatibility. #13911
    • ๐Ÿ›  Fixed Assets Manager hard reference to \Phalcon\Tag, should use DI #12261

    ๐Ÿ”„ Changed

    • โ™ป๏ธ Refactored Phalcon\Registry to use the Phalcon\Collection class #13893
    • โ™ป๏ธ Refactored Phalcon\Session\Bag to use the Phalcon\Collection class #13893
    • โ™ป๏ธ Refactored almost all files of the project to abide by the new coding standard for Phalcon. Certain files have been intentionally left untouched because they will be relaced later on. #13915

    โœ‚ Removed

    • โœ‚ Removed Phalcon\Session\BagInterface #13893
  • v4.0.0-alpha.3 Changes

    March 03, 2019

    โž• Added

    • โž• Added view:afterCompile and view:beforeCompile events for the Volt compiler #2182
    • โž• Added array merge support to Phalcon\Config::merge
    • Added setBlacklist in Phalcon\Debug to allow the developer to "blacklist" certain variables from the $_REQUEST or $_SERVER superglobals being displayed on screen #13687
    • ๐Ÿ”„ Changed view engine service closures to no longer receive the dependency injector as the second parameter. Instead use $this for the DI. #11926

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed router and controller parameter inconsistencies (camelize etc.) #13555
    • ๐Ÿ›  Fixed invalid opcode in phalcon.so when using docker #13143
    • ๐Ÿ›  Fixed storing related model data in Phalcon\Messages\Message. The method is now setMetadata and can be used to store any metadata from any component that emits messages #13811
    • ๐Ÿ›  Fixed Dispatcher calling camelize twice and producing incorrect results #12829
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model:findFirst to throw an exception when the passed parameter for a primary key is not an array, string or numeric #13336
    • โž• Added Phalcon\Http\ResponseInterface::isSent, that was already used. #13836

    ๐Ÿ”„ Changed

    • ๐Ÿ“‡ Renamed Phalcon\Acl\Subject to Phalcon\Acl\Component #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\SubjectInterface to Phalcon\Acl\ComponentInterface #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\SubjectAware to Phalcon\Acl\ComponentAware #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Operation to Phalcon\Acl\Role #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\OperationInterface to Phalcon\Acl\RoleInterface #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\OperationAware to Phalcon\Acl\RoleAware #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::addOperation to Phalcon\Acl\AdapterInterface::addRole #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::isOperation to Phalcon\Acl\AdapterInterface::isRole #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::isSubject to Phalcon\Acl\AdapterInterface::isComponent #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::addSubject to Phalcon\Acl\AdapterInterface::addComponent #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::addSubjectAccess to Phalcon\Acl\AdapterInterface::addComponentAccess #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::dropSubjectAccess to Phalcon\Acl\AdapterInterface::dropComponentAccess #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getActiveOperation to Phalcon\Acl\AdapterInterface::getActiveRole #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getActiveSubject to Phalcon\Acl\AdapterInterface::getActiveComponent #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getOperationss to Phalcon\Acl\AdapterInterface::getRoles #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getSubjects to Phalcon\Acl\AdapterInterface::getComponents #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter::getActiveOperation to Phalcon\Acl\AdapterInterface::getActiveRole #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter::getActiveSubject to Phalcon\Acl\AdapterInterface::getActiveComponent #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::addOperation to Phalcon\Acl\Adapter\Memory::addRole #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::isOperation to Phalcon\Acl\Adapter\Memory::isRole #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::isSubject to Phalcon\Acl\Adapter\Memory::isComponent #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::addSubject to Phalcon\Acl\Adapter\Memory::addComponent #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::addSubjectAccess to Phalcon\Acl\Adapter\Memory::addComponentAccess #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::dropSubjectAccess to Phalcon\Acl\Adapter\Memory::dropComponentAccess #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::getOperationss to Phalcon\Acl\Adapter\Memory::getRoles #13808
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::getSubjects to Phalcon\Acl\Adapter\Memory::getComponents #13808
    • ๐Ÿ“‡ Renamed Phalcon\Mvc\Url to Phalcon\Url #13742
    • ๐Ÿ‘• Renamed Phalcon\Mvc\UrlInterface to Phalcon\UrlInterface #13742
    • ๐Ÿ‘ป Renamed Phalcon\Mvc\Url\Exception to Phalcon\Url\Exception #13742

    โœ‚ Removed

    • โœ‚ Removed the CSS/JS minifiers. This affects the Assets\Filter classes. For now the classes return the original content. #13819, #10118
    • โœ‚ Removed Phalcon\Queue namespace and tests. Beanstalkd is near being abandoned. A new Queue component/adapter will be implemented for queueing needs of the community. #13364
  • v4.0.0-alpha.2 Changes

    February 02, 2019

    โž• Added

    • โž• Added notFound() method in Phalcon\Translate\Adapter\NativeArray which returns the key requested if not found. The method can be overriden when extending the class, returning what the developer needs #13007
    • โž• Added Phalcon\Service\Locator, Phalcon\Service\LocatorInterface and Phalcon\Service\LocatorFactoryInterface to allow for the creation of service locators and factories throughout the application #13771
    • โž• Added Phalcon\Http\Request::setParameterFilters. It allows you to preset filters for specific input (i.e. id, name etc.). You can then retrieve the automatcally sanitized values using Phalcon\Http\Request::getFilteredQuery, Phalcon\Http\Request::getFilteredPost and Phalcon\Http\Request::getFilteredPut #13488

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed Phalcon\Mvc\Micro::handle to properly return a response object #13712
    • ๐Ÿ›  Fixed Phalcon\Cache\Backend\Libmemcached returning "empty" values being as null when they could be 0, false or empty string. #13497
    • ๐Ÿ›  Fixed session adapters to properly implement SessionHandlerInterface::write
    • ๐Ÿ›  Fixed Phalcon\Session\Manager to not interact with $_SESSION variable if the session has not been started #13718, #13520
    • ๐Ÿ›  Fixed Phalcon\Cli\Console class not found error if handling the same module twice #13724
    • ๐Ÿ›  Fixed Phalcon\Cache\Backend\Libmemcached returning "empty" values being as null when they could be 0, false or empty string. #13497
    • ๐Ÿ›  Fixed Phalcon\Mvc\View\Engine\Volt\Compiler::functionCall building the incorrect code for the following tags; select, and select_static #13459

    - ๐Ÿ›  Fixed Phalcon\Tag\Select not rendering without any options.

    ๐Ÿ”„ Changed

    • ๐Ÿ”„ Changed the Phalcon\Tag::renderTitle() parameters such as Phalcon\Tag::getTitle() #13706
    • ๐Ÿ”„ Changed the Phalcon\Html\Tag::renderTitle() parameters such as Phalcon\Html\Tag::getTitle() #13706
    • ๐Ÿ”„ Changed the Phalcon\Version::get() to follow semantic versioning #13720
    • ๐Ÿ”„ Changed the Phalcon\Translate\Adapter\NativeArray to accept a new parameter in the constructor triggerError. This will trigger an error if the key is not found #13007
    • ๐Ÿ”„ Changed the default action of Phalcon\Acl\Memoryto be Acl::DENY instead of Acl::ALLOW #13758
    • ๐Ÿ”„ Changed Phalcon\Mvc\User\Plugin to Phalcon\Plugin #13749
    • ๐Ÿ”„ Changed Phalcon\Exception to implement \Throwable interface.#13750
    • ๐Ÿ”„ Changed Phalcon\Http\Cookie. The httpOnly property is no longer initialised with a value #13464
    • ๐Ÿ”„ Changed the default action for no arguments of Phalcon\Acl\Memoryto be Acl::DENY instead of Acl::ALLOW #13769
    • ๐Ÿ”„ Changed the implementation of Phalcon\Filter. It uses a service locator and a service locator factory now. It has more sanitizers now. #13060
  • v4.0.0-alpha1 Changes

    December 25, 2018

    THIS RELEASE IS NOT BACKWARDS COMPATIBLE

    โž• Added

    • Added Code of Conduct for the project
    • โž• Added Phalcon\Db\Adapter\Pdo\Postgresql::describeReferences to implement custom Postgresql rules 438
    • โž• Added Phalcon\Mvc\Router\RouteInterface::convert so that calling Phalcon\Mvc\Router\Group::add will return an instance that has convert method #13380
    • โž• Added Phalcon\Mvc\ModelInterface::getModelsMetaData #13070
    • โž• Added Phalcon\Validation\Validator\Ip, class used to validate ip address fields. It allows to validate a field selecting IPv4 or IPv6, allowing private or reserved ranges and empty values if necessary. #13574
    • โž• Added Phalcon\Messages\MessageInterface, Phalcon\Messages\Message, Phalcon\Messages\Exception and Phalcon\Messages\Messages to handle all messages for the application (model/validation) #13114
    • โž• Added getHandlerSuffix(), setHandlerSuffix() in Dispatcher, getTaskSuffix(), setTaskSuffix() in the CLI Dispatcher #13468
    • โž• Added ability to set a custom template for the Flash Messenger. #13445
    • โž• Added forUpdate in the Sqlite dialect to override the method from the base dialect. #13539
    • โž• Added TYPE_ENUM in the Mysql adapter. #11368
    • Added more column types for the Mysql adapter. The adapter supports TYPE_BIGINTEGER, TYPE_BIT, TYPE_BLOB, TYPE_BOOLEAN, TYPE_CHAR, TYPE_DATE, TYPE_DATETIME, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_ENUM, TYPE_FLOAT, TYPE_INTEGER, TYPE_JSON, TYPE_JSONB, TYPE_LONGBLOB, TYPE_LONGTEXT, TYPE_MEDIUMBLOB, TYPE_MEDIUMINTEGER, TYPE_MEDIUMTEXT, TYPE_SMALLINTEGER, TYPE_TEXT, TYPE_TIME, TYPE_TIMESTAMP, TYPE_TINYBLOB, TYPE_TINYINTEGER, TYPE_TINYTEXT, TYPE_VARCHAR#13151, #12223, #524, #13225 @zGaron, #12523 @Studentsov, #12471 @ruudboon
    • โž• Added Phalcon\Acl\Adapter\Memory::addRole support multiple inherited #13557
    • โž• Added Phalcon\Tag::renderTitle() that renders the title enclosed in <title> tags. #13547
    • โž• Added hasHeader() method to Phalcon\Http\Response to provide the ability to check if a header exists. #12189
    • Added global setting orm.case_insensitive_column_map to attempt to find value in the column map case-insensitively. Can be also enabled by setting caseInsensitiveColumnMap key in \Phalcon\Mvc\Model::setup(). #11802
    • โž• Added the ability to use FrontendInterface to serialize Model and ResultSet - Inject a serializer object which implements FrontendInterface in DI to use it. #12808
    • โž• Added Phalcon\Mvc\Model\Query\BuilderInterface::offset #13599
    • โž• Added Phalcon\Http\Response\Cookies::getCookies #13591
    • โž• Added Phalcon\Mvc\Model::isRelationshipLoaded to check if relationship is loaded #12772
    • โž• Added an easy way to work with Phalcon and run the tests locally, using nanobox.io #13578
    • โž• Added response handler to Phalcon\Mvc\Micro, Phalcon\Mvc\Micro::setResponseHandler, to allow use of a custom response handler. #12452
    • โž• Added two new events response::beforeSendHeaders and response::afterSendHeaders to Phalcon\Http\Response #10689
    • โž• Added a retainer for the current token to be used during the checkings, so when Phalcon\Security::getToken is called the token used for checkings don't change. #12392
    • โž• Added Phalcon\Html\Tag, a component that creates HTML elements. It will replace Phalcon\Tag in a future version. This component does not use static method calls. #12392
    • โž• Added Phalcon\Paginator\RepositoryInterface for repository the current state of paginator and also optional sets the aliases for properties repository #10985, #10957
    • โž• Added bind support to Phalcon\Mvc\Model\Query\Builder. The Query Builder has the same methods as Phalcon\Mvc\Model\Query; getBindParams, setBindParams, getBindTypes and setBindTypes. #13368
    • โž• Added Phalcon\Html\Breadcrumbs, a component that creates HTML code for breadcrumbs. #13680
    • โž• Added more methods to interfaces.
      • Phalcon\Cli\Router\RouteInterface - delimiter, getDelimiter
      • Phalcon\Cli\DispatcherInterface - setOptions, getOptions
      • Phalcon\Db\AdapterInterface - fetchColumn, insertAsDict, updateAsDict
      • Phalcon\Db\DialectInterface - registerCustomFunction, getCustomFunctions, getSqlExpression
      • Phalcon\Di\ServiceInterface - getParameter, isResolved
      • Phalcon\Events\ManagerInterface - hasListeners
      • Phalcon\Mvc\Model\Query\BuilderInterface - distinct, getDistinct, forUpdate, offset, getOffset
      • Phalcon\Mvc\Model\Transaction\ManagerInterface - setDbService, getDbService, setRollbackPendent, getRollbackPendent
      • Phalcon\Mvc\Model\CriteriaInterface - distinct, leftJoin, innerJoin, rightJoin, groupBy, having, cache, getColumns, getGroupBy, getHaving,
      • Phalcon\Mvc\Model\ManagerInterface - isVisibleModelProperty, keepSnapshots, isKeepingSnapshots, useDynamicUpdate, isUsingDynamicUpdate, addHasManyToMany, existsHasManyToMany, getRelationRecords, getHasManyToMany, registerNamespaceAlias, getNamespaceAlias
      • Phalcon\Mvc\Model\MessageInterface - setModel, getModel, setCode, getCode
      • Phalcon\Mvc\Model\QueryInterface - getSingleResult, setBindParams, getBindParams, setBindTypes, setSharedLock, getBindTypes, getSql
      • Phalcon\Mvc\Model\RelationInterface - getParams
      • Phalcon\Mvc\Model\ResultsetInterface - setHydrateMode, getHydrateMode, getMessages, update, delete, filter
      • Phalcon\Mvc\ModelInterface - getModelsMetaData
      • Phalcon\Session\AdapterInterface - setId, status
      • Phalcon\Validation\MessageInteraface - getCode, setCode
      • Phalcon\CryptInterface - setPadding
      • Phalcon\Mvc\RouterInterface - attach #12676
    • โž• Added Phalcon\Container, a proxy container class to the Phalcon\DI implementing PSR-11 #12295
    • โž• Added Phalcon\Acl\Adapter\Memory::getActiveKey, Phalcon\Acl\Adapter\Memory::activeFunctionCustomArgumentsCount and Phalcon\Acl\Adapter\Memory::getActiveFunction to get latest key, number of custom arguments, and function used to acquire access #12547

    ๐Ÿ”„ Changed

    • Now Phalcon requires the PSR PHP extension to be installed and enabled
    • ๐Ÿ”ง By configuring prefix and statsKey the Phalcon\Cache\Backend\Redis::queryKeys no longer returns prefixed keys, now it returns original keys without prefix. #13656
    • The Phalcon\Mvc\Application, Phalcon\Mvc\Micro and Phalcon\Mvc\Router now must have a URI to process #12380
    • Response headers and cookies are no longer prematurely sent #12378
    • You can no longer assign data to models whilst saving them #12317
    • The Phalcon\Mvc\Model\Manager::load no longer reuses already initialized models #12317
    • โšก๏ธ Changed Phalcon\Db\Dialect\Postgresql::describeReferences to generate correct SQL, added "on update" and "on delete" constraints 438
    • ๐Ÿ”„ Changed catch Exception to Throwable #12288
    • ๐Ÿ”„ Changed Phalcon\Mvc\Model\Query\Builder::addFrom to remove third parameter $with #13109
    • 0๏ธโƒฃ Phalcon\Forms\Form::clear will no longer call Phalcon\Forms\Element::clear, instead it will clear/set default value itself, and Phalcon\Forms\Element::clear will now call Phalcon\Forms\Form::clear if it's assigned to the form, otherwise it will just clear itself. #13500
    • 0๏ธโƒฃ Phalcon\Forms\Form::getValue will now also try to get the value by calling Tag::getValue or element's getDefault method before returning null, and Phalcon\Forms\Element::getValue calls Tag::getDefault only if it's not added to the form. #13500
    • ๐Ÿ”„ Changed Phalcon\Mvc\Model to use the Phalcon\Messages\Message object for its messages #13114
    • ๐Ÿ”„ Changed Phalcon\Validation\* to use the Phalcon\Messages\Message object for its messages #13114
    • Collections now use the Validation component #12376
    • Made the specialKey (_PHCR) optional for the Phalcon\Cache\Backend\Redis adapter #10905, #11608
    • โ™ป๏ธ Refactored Phalcon\Db\Adapter\Pdo::query to use PDO's prepare and execute. Phalcon\Db\Adapter::fetchAll to use PDO's fetchAll #13515
    • ๐Ÿ›  Fixed \Phalcon\Http\Response::setFileToSend filename last much _ #13496
    • ๐Ÿ”„ Changed Phalcon\Tag::getTitle. It returns only the text. It accepts prepend, append booleans to prepend or append the relevant text to the title. #13547
    • ๐Ÿ”„ Changed Phalcon\Di\Service constructor to no longer takes the name of the service. #13590
    • ๐Ÿ”„ Changed Phalon\Tag::textArea to use htmlspecialchars to prevent XSS injection. #12428
    • ๐Ÿ”„ Changed Phalon\Cache\Backend\*::get to use only positive numbers for lifetime 11759
    • ๐Ÿ”„ Changed Phalcon\Logger to comply with PSR-3. The component has been rewritten to use adapters that alllow logging to different areas. The #13438
    • ๐Ÿฑ Renamed Phalcon\Assets\Resource namespace to Phalcon\Assets\Asset #12082
    • ๐Ÿฑ Renamed Phalcon\Assets\Resource to Phalcon\Assets\Asset #12082
    • ๐Ÿฑ Renamed Phalcon\Assets\ResourceInterface to Phalcon\Assets\AssetInterface #12082
    • ๐Ÿฑ Renamed Phalcon\Assets\Manager::addResource to Phalcon\Assets\Manager::addAsset #12082
    • ๐Ÿฑ Renamed Phalcon\Assets\Manager::addResourceByType to Phalcon\Assets\Manager::addAssetByType #12082
    • ๐Ÿฑ Renamed Phalcon\Assets\Manager::collectionResourcesByType to Phalcon\Assets\Manager::collectionAssetsByType #12082
    • ๐Ÿ”„ Changed paginate in the place of getPaginate. Added previous in the place of before. #13492
    • Scope SQL Column Aliases (on nesting level), in Phalcon\Mvc\Model\Query, to prevent overwrite root query's _sqlColumnAliases by sub-queries. #13006, #12548 and #1731
    • CLI parameters now work like MVC parameters #12375
    • ๐Ÿ”„ Changed Phalcon\Db\Dialect\Postgresql::addPrimaryKey to make primary key constraints names unique by prefixing them with the table name. #12629
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model\Query::_prepareSelect overwriting columns with the same alias #13552
    • ๐Ÿ”„ Changed Phalcon\Http\RequestInterface to align with Phalcon\Http\Request #13061
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Resource to Phalcon\Acl\Subject #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\ResourceInterface to Phalcon\Acl\SubjectInterface #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\ResourceAware to Phalcon\Acl\SubjectAware #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Role to Phalcon\Acl\Operation #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\RoleInterface to Phalcon\Acl\OperationInterface #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\RoleAware to Phalcon\Acl\OperationAware #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::addRole to Phalcon\Acl\AdapterInterface::addOperation #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::isRole to Phalcon\Acl\AdapterInterface::isOperation #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::isResource to Phalcon\Acl\AdapterInterface::isSubject #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::addResource to Phalcon\Acl\AdapterInterface::addSubject #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::addResourceAccess to Phalcon\Acl\AdapterInterface::addSubjectAccess #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::dropResourceAccess to Phalcon\Acl\AdapterInterface::dropSubjectAccess #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getActiveRole to Phalcon\Acl\AdapterInterface::getActiveOperation #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getActiveResource to Phalcon\Acl\AdapterInterface::getActiveSubject #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getRoless to Phalcon\Acl\AdapterInterface::getOperations #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\AdapterInterface::getResources to Phalcon\Acl\AdapterInterface::getSubjects #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter::getActiveRole to Phalcon\Acl\AdapterInterface::getActiveOperation #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter::getActiveResource to Phalcon\Acl\AdapterInterface::getActiveSubject #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::addRole to Phalcon\Acl\Adapter\Memory::addOperation #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::isRole to Phalcon\Acl\Adapter\Memory::isOperation #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::isResource to Phalcon\Acl\Adapter\Memory::isSubject #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::addResource to Phalcon\Acl\Adapter\Memory::addSubject #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::addResourceAccess to Phalcon\Acl\Adapter\Memory::addSubjectAccess #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::dropResourceAccess to Phalcon\Acl\Adapter\Memory::dropSubjectAccess #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::getRoless to Phalcon\Acl\Adapter\Memory::getOperations #13639
    • ๐Ÿ“‡ Renamed Phalcon\Acl\Adapter\Memory::getResources to Phalcon\Acl\Adapter\Memory::getSubjects #13639
    • ๐Ÿ”„ Changed Phalcon\Http\Response::setHeaders now merges the headers with any pre-existing ones in the internal collection #12836
    • ๐Ÿ”„ Changed Phalcon\DI\FactoryDefault to not load by default
      • the Phalcon\Session\Adapter\Files using the name session
      • the Phalcon\Session\Bag using the name sessionBag #12921
        #12921
    • โ™ป๏ธ Changed the Phalcon\Session namespace by refactoring the component. Phalcon\Session\Manager is now the single component offering session manipulation by using adapters. Each adapter implements PHP's SessionHandlerInterface. Available adapters are Phalcon\Session\Files, Phalcon\Session\Libmemcached, Phalcon\Session\Noop and Phalcon\Session\Redis. #12921, #11341, #13535
    • ๐Ÿ›  Fixed Phalcon\Mvc\Models magic method (setter) is fixed for arrays #13661
    • ๐Ÿ›  Fixed Phalcon\Mvc\Model::skipAttributes and Phalcon\Mvc\Model::allowEmptyColumns allowEmptyStrings & skipAttributes repsect the column mapping. #12975, #13477

    โœ‚ Removed

    • ๐Ÿ‘ PHP < 7.2 no longer supported
    • โœ‚ Removed xcache support from adapters #13628
    • โœ‚ Removed apc support from adapters (use apcu) #13628
    • โœ‚ Removed memcache support from adapters (use libmemcached) #13628
    • โœ‚ Removed deprecated Phalcon\Annotations\Adapter\Apc
    • โœ‚ Removed deprecated Phalcon\Annotations\Adapter\Xcache
    • โœ‚ Removed deprecated Phalcon\Cache\Backend\Apc
    • โœ‚ Removed deprecated Phalcon\Cache\Backend\Memcache
    • โœ‚ Removed deprecated Phalcon\Cache\Backend\Xcache
    • โœ‚ Removed deprecated Phalcon\Cli\Console::addModules
    • โœ‚ Removed deprecated Phalcon\Debug::getMajorVersion
    • โœ‚ Removed deprecated Phalcon\Mvc\Model\Criteria::addWhere
    • โœ‚ Removed deprecated Phalcon\Mvc\Model\Criteria::order
    • โœ‚ Removed deprecated Phalcon\Mvc\Model\Metadata\Apc
    • โœ‚ Removed deprecated Phalcon\Mvc\Model\Metadata\Memcache
    • โœ‚ Removed deprecated Phalcon\Mvc\Model\Metadata\Xcache
    • โœ‚ Removed deprecated Phalcon\Mvc\View::getParams
    • โœ‚ Removed deprecated Phalcon\Mvc\ViewInterface::getParams
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\Model::getPaginate
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\Model - $before
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\Model - $total_pages
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\NativeArray::getPaginate
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\NativeArray - $before
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\NativeArray - $total_pages
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\QueryBuilder::getPaginate
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\QueryBuilder - $before
    • โœ‚ Removed deprecated Phalcon\Paginator\Adapter\QueryBuilder - $total_pages
    • โœ‚ Removed deprecated Phalcon\Security::hasLibreSsl
    • โœ‚ Removed deprecated Phalcon\Security::getSslVersionNumber
    • โœ‚ Removed deprecated Phalcon\Validation\Validator::isSetOption
    • โœ‚ Removed Phalcon\Cli\Console::addModules in favor of Phalcon\Cli\Console::registerModules
    • โœ‚ Removed Phalcon\Debug::getMajorVersion due to the fact that we never use this method
    • โœ‚ Removed Phalcon\Dispatcher::setModelBinding in favor of Phalcon\Dispatcher::setModelBinder
    • โœ‚ Removed Phalcon\Http\RequestInterface::isSecureRequest in favor of Phalcon\Http\RequestInterface::isSecure
    • โœ‚ Removed Phalcon\Http\RequestInterface::isSoapRequested in favor of Phalcon\Http\Request::isSoap
    • โœ‚ Removed Phalcon\Logger\Multiple
    • โœ‚ Removed Phalcon\Mvc\Collection::validationHasFailed
    • โœ‚ Removed Phalcon\Mvc\Model\Criteria::order in favor of Phalcon\Mvc\Model\Criteria::orderBy
    • Removed Phalcon\Mvc\Model\Validator\* in favor of Phalcon\Validation\Validator\*
    • โœ‚ Removed Phalcon\Mvc\Micro\Lazyloader::__call in favor of Phalcon\Mvc\Micro\Lazyloader::callMethod
    • โœ‚ Removed Phalcon\Model::reset #12317
    • โœ‚ Removed Phalcon\Validation\Message and Phalcon\Mvc\Model\Message in favor of Phalcon\Messages\Message
    • โœ‚ Removed Phalcon\Validation\MessageInterface and Phalcon\Mvc\Model\MessageInterface in favor of Phalcon\Messages\MessageInterface
    • โœ‚ Removed Phalcon\Validation\Message and Phalcon\Mvc\Model\Message in favor of Phalcon\Messages\Message
    • โœ‚ Removed Phalcon\Validation\Message\Group in favor of Phalcon\Messages\Messages
    • โœ‚ Removed calling Phalcon\Mvc\Collection::validate with object of type Phalcon\Mvc\Model\ValidatorInterface
  • v3.4.5 Changes

    October 30, 2019
    • ๐Ÿ›  Fixed segfault in Phalcon\Mvc\Micro\LazyLoader::__call() when the handler has a syntax error. #12396
    • ๐Ÿ›  Fixed RuntimeException in Phalcon\Db\Adapter\Pdo Trying to call method upper on a non-object. #14330
    • ๐Ÿ›  Fixed Phalcon\Storage\Adapter\Redis::delete() deprecated warning from php-redis #14281
  • v3.4.4 Changes

    June 30, 2019

    ๐Ÿ›  Fixed

    • Generated Dialect Class referring to a PHP class can't be found #13867
    • ๐Ÿ”„ Changed default gcc's CFLAGS so that, the extension should be properly generated for most hosts, including Docker #13143
    • Phalcon\Forms\Form::clear() now correctly clears single fields. #14217
    • โœ… Used latest stable Zephir from 0.10.x branch to prevent segfaults with PHP 7.3.6 #14160