Phalcon v4.0.0-alpha.2 Release Notes
Release Date: 2019-02-02 // about 5 years ago-
➕ Added
- ➕ Added
notFound()
method inPhalcon\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
andPhalcon\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 usingPhalcon\Http\Request::getFilteredQuery
,Phalcon\Http\Request::getFilteredPost
andPhalcon\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 asnull
when they could be0
,false
or emptystring
. #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 asnull
when they could be0
,false
or emptystring
. #13497 - 🛠 Fixed
Phalcon\Mvc\View\Engine\Volt\Compiler::functionCall
building the incorrect code for the following tags;select
, andselect_static
#13459
- 🛠 Fixed
Phalcon\Tag\Select
not rendering without any options.🔄 Changed
- 🔄 Changed the
Phalcon\Tag::renderTitle()
parameters such asPhalcon\Tag::getTitle()
#13706 - 🔄 Changed the
Phalcon\Html\Tag::renderTitle()
parameters such asPhalcon\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 constructortriggerError
. This will trigger an error if the key is not found #13007 - 🔄 Changed the default action of
Phalcon\Acl\Memory
to beAcl::DENY
instead ofAcl::ALLOW
#13758 - 🔄 Changed
Phalcon\Mvc\User\Plugin
toPhalcon\Plugin
#13749 - 🔄 Changed
Phalcon\Exception
to implement\Throwable
interface.#13750 - 🔄 Changed
Phalcon\Http\Cookie
. ThehttpOnly
property is no longer initialised with a value #13464 - 🔄 Changed the default action for no arguments of
Phalcon\Acl\Memory
to beAcl::DENY
instead ofAcl::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
- ➕ Added