PhalconPHP 3.2.0 正式发布了,PhalconPHP 是一个使用 C 扩展开发的 PHP Web 框架,提供高性能和低资源占用。 下载地址: https://github.com/phalcon/cphalcon/archive/v3.2.0.tar.gz 更新内容: Phalcon will now triggerE_DEPREACATEDby usingPhalcon\Mvc\Model\Criteria::addWhere,Phalcon\Debug::getMajorVersion,Phalcon\Dispatcher::setModelBinding,Phalcon\Tag::resetInput,Phalcon\Mvc\Model\Validator::__construct Added Factory Adapter loaders #11001 Added ability to sanitize URL toPhalcon\Filter Added missed$typeargument to interfacePhalcon\Mvc\Model\Query\BuilderInterface::join()to specify type join AddedPhalcon\Mvc\Model::hasUpdatedandPhalcon\Mvc\Model:getUpdatedFields, way to check if fields were updated after create/save/update Added support for having option inPhalcon\Paginator\Adapter\QueryBuilder#12111 AddedPhalcon\Config:athto get a value using a dot separated path #12221 Added service provider interface to configure services by context #12783 Added the ability to load services from yaml (Phalcon\Di::loadFromYaml) and php array (Phalcon\Di::loadFromPhp) files, so we can keep the references cleanly separated from code #12784 AddedPhalcon\Cache\Backend\Apcuto introduce pure support of APCu #12098, #11934 AddedPhalcon\Annotations\Adapter\Apcuto introduce pure support of APCu #12098 Added option to disable snapshot update on create/save usingPhalcon\Mvc\Model::setup(['updateSnapshotOnSave' => false])orphalcon.orm.update_snapshot_on_save = 0inphp.ini AddedPhalcon\Mvc\Model\Manager::setModelPrefixandPhalcon\Mvc\Model\Manager::getModelPrefixto introduce tables prefixes #10328 Added methodsPhalcon\Mvc\Model\Query\Builder::andHaving,Phalcon\Mvc\Model\Query\Builder:rHaving,Phalcon\Mvc\Model\Query\Builder::betweenHaving,Phalcon\Mvc\Model\Query\Builder::notBetweenHaving,Phalcon\Mvc\Model\Query\Builder::inHaving,Phalcon\Mvc\Model\Query\Builder::notInHaving Added parametersskip_on_insert,skip_on_updateandallow_empty_stringand fixed a bug for renamed integer columns inPhalcon\Mvc\Model\MetaData\Strategy\Annotations::getMetaData Added way to disable setters inPhalcon\Mvc\Model::assignby usingPhalcon\Mvc\Model::setupor ini option Added ability to sanitize special characters toPhalcon\Filter Added a newPhalcon\Mvc\Model\Binder::findBoundModelmethod. Params fetched from cache are being added tointernalCacheclass property inPhalcon\Mvc\Model\Binder::getParamsFromCache AddedPhalcon\Mvc\Model\Criteria::createBuilderto create a query builder from criteria Addeddispatcher::beforeForwardevent to allow forwarding request to the separated module #121, #12417 AddedPhalcon\Security\Random:base62to provide the largest value that can safely be used in URLs without needing to take extra characters into consideration #12105 AddedPhalcon\Assets\ResourceInterface. So nowPhalcon\Assets\InlineandPhalcon\Assets\ResourceimplementsResourceInterface AddedPhalcon\Assets\Collection::hasto checks whether the resource is added to the collection or not AddedPhalcon\Cli\Dispatcher::getOption,Phalcon\Cli\Dispatcher::hasOptionand the options as parameter to cli handlers AddedPhalcon\Config\Adapter\Groupedto allow usage of multiple configuration files/adapters in a simple format #12884 AddedDISTINCTtype forPhalcon\Text::random Added autopadding feature forPhalcon\Crypt::encryptBase64andPhalcon\Crypt::decryptBase64#12490 Fixed Dispatcher forwarding when handling exception #11819, #12154 Fixed params view scope for PHP 7 #12648 FixedPhalcon\Mvc\Micro::handleto prevent attemps to send response twice #12668 FixedDi::set,Di::setSharedto allow pass more than 10 arguments #12299 FixedPhalcon\Mvc\Model\MetaData\Strategy\Annotations::getColumnMapswhere only renamed columns where returned if there was one FixedPhalcon\Mvc\Micro:handleto correctly handlebeforehandlers #10931 FixedPhalcon\Mvc\Micro:handleto correctly handleafterBindinghandlers FixedPhalcon\Mvc\Model::hasChangedto correctly use it with arrays #12669 FixedPhalcon\Mvc\Model\Resultset::deleteto return result depending on success #11133 FixedPhalcon\Session\Adapter::destroyto correctly clear the$_SESSIONsuperglobal #12326, #12835 FixedPhalcon\Assets\Collection:addto avoid duplication of resources #10938, #2008 FixedPhalcon\Mvc\View\Engine\Volt::compileto not throw exception in case of absence the file andstatoption is true #12849 FixedPhalcon\Mvc\Collection::getReservedAttributesto workaround for PHP 7/7.1 bug with static null when extending class phalcon/incubator#762, phalcon/incubator#760 FixedPhalcon\Cache\Backend\Redis::__constructandPhalcon\Cache\Backend\Redis::_connectto correctly handle the Redis auth option #12736 FixedPhalcon\Mvc\Collection::getReservedAttributes, added missing properties to reserved attributes phalcon/incubator#762, phalcon/incubator#760 FixedPhalcon\Mvc\Router\Annotation:rocessActionAnnotationto support PATCH request PhalconPHP 3.2.0 正式发布,高性能 PHP 框架下载地址