Releases: phalcon/cphalcon
Releases · phalcon/cphalcon
v4.1.3
v5.0.0beta1
Changed
- Marked as deprecated:
Phalcon\Mvc\Model::existsBelongsTo()
Phalcon\Mvc\Model::existsHasMany()
Phalcon\Mvc\Model::existsHasOne()
Phalcon\Mvc\Model::existsHasOneThrough()
Phalcon\Mvc\Model::existsHasManyToMany()
Phalcon\Translate\Adapter\Csv::exists()
Phalcon\Translate\Adapter\Gettext::exists()
Phalcon\Translate\Adapter\NativeArray::exists()
#15785
- Moved
Phalcon\Container
toPhalcon\Container\Container
#15796 - Changed the
Phalcon\Support\Collection::get()
to return the default value if the key does not exist or the value isnull
to mirror the behavior of v3. #15370 - Moved
Phalcon\Registry
toPhalcon\Support\Registry
#15802 - Moved
Phalcon\Url
toPhalcon\Mvc\Url
#15798 - Moved
Phalcon\Loader
toPhalcon\Autoload\Loader
#15797 - Changes to
Phalcon\Autoload\Loader
:- Renamed
registerClasses()
tosetClasses()
- Renamed
registerDirectories()
tosetDirectories()
- Renamed
registertExtensions()
tosetExtensions()
- Renamed
registertFiles()
tosetFiles()
- Renamed
registertNamespaces()
tosetNamespaces()
#15797
- Renamed
- Moved
Phalcon\Di
toPhalcon\Di\Di
#15799 - Removed references to
Phalcon\Tag
from the framework in favor ofPhalcon\Html\TagFactory
#15801 Phalcon\Forms\Form
requires aPhalcon\Html\TagFactory
to be set before it can render elements #15801Phalcon\Di\FactoryDefault
will now return aPhalcon\Html\TagFactory
for thetag
service #15801
Fixed
Phalcon\Logger\LoggerFactory::load()
to correctly use the key of the adapters array as the name of the adapter #15831
Added
- Added:
Phalcon\Mvc\Model::hasBelongsTo()
Phalcon\Mvc\Model::hasHasMany()
Phalcon\Mvc\Model::hasHasOne()
Phalcon\Mvc\Model::hasHasOneThrough()
Phalcon\Mvc\Model::hasHasManyToMany()
Phalcon\Translate\Adapter\Csv::has()
Phalcon\Translate\Adapter\Gettext::has()
Phalcon\Translate\Adapter\NativeArray::has()
#15785
- Added
filter
,camelize
,dynamic
anduncamelize
inPhalcon\Support\HelperFactory
#15805 - Added
Phalcon\Autoload\Loader::getDebug()
to collect debugging information from the loader (enabled from the constructor) #15797
Fixed
- Fixed
Phalcon\Dispatcher\Dispatcher::setParams()
not updating local params duringdispatch()
loop #15603 - Fixed related records auto-save with
belongsTo()
relation #15148
Removed
- Removed
Phalcon\Exception
; replaced by\Exception
#15800
v5.0.0alpha7
Changed
- Changes to the
Phalcon\Acl
:- Renamed
Phalcon\Acl\ComponentAware
toPhalcon\Acl\ComponentAwareInterface
- Renamed
Phalcon\Acl\RoleAware
toPhalcon\Acl\RoleAwareInterface
#15691
- Renamed
- Changed
require
torequire_once
inPhalcon\Loader
to avoid conflicts with other loaders #15489 - Changed
require
torequire_once
inPhalcon\Cli\Console
andPhalcon\Mvc\Application
for a bit of extra performance #15489 Phalcon\Collection
has been moved under theSupport
namespace:- Renamed
Phalcon\Collection
toPhalcon\Support\Collection
- Renamed
Phalcon\Collection\Exception
toPhalcon\Support\Collection\Exception
- Renamed
Phalcon\Collection\ReadOnly
toPhalcon\Support\Collection\ReadOnly
- Renamed
Phalcon\Collection
toPhalcon\Support\Collection
#15700
- Renamed
- Changes to
Phalcon\Session\Bag
:- Changed
Phalcon\Session\Bag::construct
to accept a container instead of internally calling the default - Changed
Phalcon\Session\Bag::construct
to throw an exception if the container is not specified - Changed
Phalcon\Session\Bag::init
to store the data in the session #15494
- Changed
- Changed
Phalcon\Events\Event::construct()
to allowsource
to be nullable #15133 - Changes to
Phalcon\Crypt
- Moved
Phalcon\Crypt\Exception
toPhalcon\Crypt\Exception\Exception
- Moved
Phalcon\Crypt\Mismatch
toPhalcon\Crypt\Exception\Mismatch
- Changed the ccm/gcm modes to store the
authTag
with the encryption string and process it with the decryption string #15717
- Moved
- Created new namespace
Phalcon\Encryption
- Moved
Phalcon\Crypt
toPhalcon\Encryption\Crypt
- Moved
Phalcon\Security
toPhalcon\Encryption\Security
- Moved the whole
Security
namespace underEncryption
Security\JWT\Exceptions\UnsupportedAlgorithmException
toEncryption\Security\JWT\Exceptions\UnsupportedAlgorithmException
Security\JWT\Exceptions\ValidatorException
toEncryption\Security\JWT\Exceptions\ValidatorException
Security\JWT\Signer\AbstractSigner
toEncryption\Security\JWT\Signer\AbstractSigner
Security\JWT\Signer\Hmac
toEncryption\Security\JWT\Signer\Hmac
Security\JWT\Signer\None
toEncryption\Security\JWT\Signer\None
Security\JWT\Signer\SignerInterface
toEncryption\Security\JWT\Signer\SignerInterface
Security\JWT\Token\AbstractItem
toEncryption\Security\JWT\Token\AbstractItem
Security\JWT\Token\Enum
toEncryption\Security\JWT\Token\Enum
Security\JWT\Token\Item
toEncryption\Security\JWT\Token\Item
Security\JWT\Token\Parser
toEncryption\Security\JWT\Token\Parser
Security\JWT\Token\Signature
toEncryption\Security\JWT\Token\Signature
Security\JWT\Token\Token
toEncryption\Security\JWT\Token\Token
Security\JWT\Builder
toEncryption\Security\JWT\Builder
Security\JWT\Validator
toEncryption\Security\JWT\Validator
Security\JWT\Validator
toEncryption\Security\JWT\Validator
Security\Exception
toEncryption\Security\Exception
Security\Random
toEncryption\Security\Random
#15729
- Moved
- Renamed
Phalcon\Crypt\Crypt::getHashAlgo()
toPhalcon\Crypt\Crypt::getHashAlgorithm()
Phalcon\Crypt\Crypt::getAvailableHashAlgos()
toPhalcon\Crypt\Crypt::getAvailableHashAlgorithms()
Phalcon\Crypt\Crypt::setHashAlgo()
toPhalcon\Crypt\Crypt::setHashAlgorithm()
#15717
- Renamed
Phalcon\Factory\AdapterFactory::getAdapters()
toPhalcon\Factory\AdapterFactory::getServices()
#15717 - Changed
Phalcon\Crypt\Crypt::__construct()
to haveuseSigning
set totrue
by default #15717 - Changes to
Phalcon\Config
- Moved
Phalcon\Config
toPhalcon\Config\Config
- Changed
Phalcon\Config\Config::path
by making thedelimiter
parameter astring
- Changed
Phalcon\Config\Adapter\Ini::__construct
to not acceptnull
as the mode. The default is nowINI_SCANNER_NORMAL
(2) - Refactored the code for more efficiency and speed #15720
- Moved
- Changed
Phalcon\Db\Adapter\AdapterInterface::getInternalHandler()
andPhalcon\Db\Adapter\Pdo\AbstractPdo::getInternalHandler()
to returnvar
instead of\PDO
for custom adapters with different engines #15119 - Moved
Phalcon\Filter
toPhalcon\Filter\Filter
; added more tests #15726 - Changed
Phalcon\Mvc\Model::getPreparedQuery()
to returnQueryInterface
instead ofQuery
#15562 - Moved
Phalcon\Cache
toPhalcon\Cache\Cache
#15728 - Changed
Phalcon\Factory\AdapterFactory
to define the factory exception ingetExceptionClass()
instead of a property. #15728 - Renamed
Phalcon\Db\Adapter\AbstractAdapter::getSqlVariables()
toPhalcon\Db\Adapter\AbstractAdapter::getSQLVariables()
to align with the rest of thegetSQL*
methods #15637 - Moved
Phalcon\Logger
toPhalcon\Logger\Logger
#15727 - Changes to
Phalcon\Escaper
- Moved
Phalcon\Escaper
toPhalcon\Html\Escaper
- Moved
Phalcon\Escaper\EscaperInterface
toPhalcon\Html\Escaper\EscaperInterface
- Moved
Phalcon\Escaper\Exception
toPhalcon\Html\Escaper\Exception
- Deprecated methods (to be removed at a future version)
escapeCss()
becomescss()
escapeJs()
, becomesjs()
escapeHtml()
becomeshtml()
escapeHtmlAttr()
becomesattributes()
escapeUrl()
becomesurl()
setHtmlQuoteType()
becomessetFlags()
#15757
- Moved
- Changed
Phalcon\Encryption\Security::hash()
to also usepassword_hash()
and acceptARGON2*
algorithms #15731 - Removed uncamelize of
realClassName
inPhalcon\Mvc\Router\Route::getRoutePaths()
if definition is string to make processing same as if array definition #15067 - Changed
Phalcon\Validation::getValue()
behavior to get value fromdata
if not found inentity
. #14203 - Changed
Phalcon\Forms\Form::isValid()
signature: addedwhitelist
argument. #14203 - Changed
Phalcon\Support\Collection\ReadOnly
toPhalcon\Support\Collection\ReadOnlyCollection
to avoid conflicts with the read-only feature in PHP 8.1 #15767 - Removed
Phalcon\Text
- replaced byPhalcon\Support\Helper\Str\*
#15776 - Removed
Phalcon\Helper\Arr
- replaced byPhalcon\Support\Helper\Arr\*
#15776 - Removed
Phalcon\Helper\File
- replaced byPhalcon\Support\Helper\File\*
#15776 - Removed
Phalcon\Helper\Json
- replaced byPhalcon\Support\Helper\Json\*
#15776 - Removed
Phalcon\Helper\Number
- replaced byPhalcon\Support\Helper\Number\*
#15776 - Removed
Phalcon\Helper\Str
- replaced byPhalcon\Support\Helper\Str\*
#15776 - Removed references to
Phalcon\Text
,Phacon\Helper\*
from the code replacing it withPhalcon\Support\Helper\*
#15776 - Synchronized tests with
phalcon/phalcon
thus increasing coverage #15776 - Changed
Phalcon\Assets\Manager
to require aPhalcon\Html\TagFactory
in its constructor #15776
Added
- Added more tests in the suite for additional code coverage #15691
- Added
Phalcon\Events\AbstractEventsAware
class to handle the Events Manager when necessary #15691 - Added
Phalcon\Acl\Adapter\AdapterInterface::getInheritedRoles()
andPhalcon\Acl\Adapter\Memory::getInheritedRoles()
that returns the inherited roles based on a passed role name (or all if no parameter supplied) #15154 - Changes to
Phalcon\Crypt
- Added
Phalcon\Crypt\Padding\PadInteface
and padding adaptersPhalcon\Crypt\Padding\Ansi
Phalcon\Crypt\Padding\Iso10126
Phalcon\Crypt\Padding\IsoIek
Phalcon\Crypt\Padding\Noop
Phalcon\Crypt\Padding\PadInterface
Phalcon\Crypt\Padding\Pkcs7
Phalcon\Crypt\Padding\Space
Phalcon\Crypt\Padding\Zero
- Added
Phalcon\Crypt\PadFactory
to easily create padding adapters - Added more tests increasing coverage #15717
- Added
- Added
Phalcon\Cache\Adapter\*::setForever()
andPhalcon\Storage\Adapter\*::setForever()
to allow storing a key forever #15485 - Added `Phalcon\Encryption\Secur...
v5.0.0alpha6
All notable changes to this version has been documented in the CHANGELOG-5.0.md file.
Supported PHP versions: 7.4, 8.0
v5.0.0alpha5
All notable changes to this version has been documented in the CHANGELOG-5.0.md file.
Supported PHP versions: 7.4, 8.0
v5.0.0alpha4
All notable changes to this version has been documented in the CHANGELOG-5.0.md file.
Supported PHP versions: 7.4, 8.0
v5.0.0alpha3
All notable changes to this version has been documented in the CHANGELOG-5.0.md file.
Supported PHP versions: 7.4, 8.0
v5.0.0-alpha.2
All notable changes to this version has been documented in the CHANGELOG-5.0.md file.