PhalconPHP 3.2.0 正式发布,高性能 PHP 框架

PhalconPHP 3.2.0 正式发布了,PhalconPHP 是一个使用 C 扩展开发的 PHP Web 框架,提供高性能和低资源占用。

下载地址:

https://github.com/phalcon/cphalcon/archive/v3.2.0.tar.gz

更新内容:

  • Phalcon will now triggerE_DEPREACATEDby usingPhalconMvcModelCriteria::addWhere,PhalconDebug::getMajorVersion,PhalconDispatcher::setModelBinding,PhalconTag::resetInput,PhalconMvcModelValidator::__construct

  • Added Factory Adapter loaders #11001

  • Added ability to sanitize URL toPhalconFilter

  • Added missed$typeargument to interfacePhalconMvcModelQueryBuilderInterface::join()to specify type join

  • AddedPhalconMvcModel::hasUpdatedandPhalconMvcModel:getUpdatedFields, way to check if fields were updated after create/save/update

  • Added support for having option inPhalconPaginatorAdapterQueryBuilder#12111

  • AddedPhalconConfig::pathto 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 (PhalconDi::loadFromYaml) and php array (PhalconDi::loadFromPhp) files, so we can keep the references cleanly separated from code #12784

  • AddedPhalconCacheBackendApcuto introduce pure support of APCu #12098, #11934

  • AddedPhalconAnnotationsAdapterApcuto introduce pure support of APCu #12098

  • Added option to disable snapshot update on create/save usingPhalconMvcModel::setup(['updateSnapshotOnSave' => false])orphalcon.orm.update_snapshot_on_save = 0inphp.ini

  • AddedPhalconMvcModelManager::setModelPrefixandPhalconMvcModelManager::getModelPrefixto introduce tables prefixes #10328

  • Added methodsPhalconMvcModelQueryBuilder::andHaving,PhalconMvcModelQueryBuilder::orHaving,PhalconMvcModelQueryBuilder::betweenHaving,PhalconMvcModelQueryBuilder::notBetweenHaving,PhalconMvcModelQueryBuilder::inHaving,PhalconMvcModelQueryBuilder::notInHaving

  • Added parametersskip_on_insert,skip_on_updateandallow_empty_stringand fixed a bug for renamed integer columns inPhalconMvcModelMetaDataStrategyAnnotations::getMetaData

  • Added way to disable setters inPhalconMvcModel::assignby usingPhalconMvcModel::setupor ini option

  • Added ability to sanitize special characters toPhalconFilter

  • Added a newPhalconMvcModelBinder::findBoundModelmethod. Params fetched from cache are being added tointernalCacheclass property inPhalconMvcModelBinder::getParamsFromCache

  • AddedPhalconMvcModelCriteria::createBuilderto create a query builder from criteria

  • Addeddispatcher::beforeForwardevent to allow forwarding request to the separated module #121, #12417

  • AddedPhalconSecurityRandom:base62to provide the largest value that can safely be used in URLs without needing to take extra characters into consideration #12105

  • AddedPhalconAssetsResourceInterface. So nowPhalconAssetsInlineandPhalconAssetsResourceimplementsResourceInterface

  • AddedPhalconAssetsCollection::hasto checks whether the resource is added to the collection or not

  • AddedPhalconCliDispatcher::getOption,PhalconCliDispatcher::hasOptionand the options as parameter to cli handlers

  • AddedPhalconConfigAdapterGroupedto allow usage of multiple configuration files/adapters in a simple format #12884

  • AddedDISTINCTtype forPhalconText::random

  • Added autopadding feature forPhalconCrypt::encryptBase64andPhalconCrypt::decryptBase64#12490

  • Fixed Dispatcher forwarding when handling exception #11819, #12154

  • Fixed params view scope for PHP 7 #12648

  • FixedPhalconMvcMicro::handleto prevent attemps to send response twice #12668

  • FixedDi::set,Di::setSharedto allow pass more than 10 arguments #12299

  • FixedPhalconMvcModelMetaDataStrategyAnnotations::getColumnMapswhere only renamed columns where returned if there was one

  • FixedPhalconMvcMicro:handleto correctly handlebeforehandlers #10931

  • FixedPhalconMvcMicro:handleto correctly handleafterBindinghandlers

  • FixedPhalconMvcModel::hasChangedto correctly use it with arrays #12669

  • FixedPhalconMvcModelResultset::deleteto return result depending on success #11133

  • FixedPhalconSessionAdapter::destroyto correctly clear the$_SESSIONsuperglobal #12326, #12835

  • FixedPhalconAssetsCollection:addto avoid duplication of resources #10938, #2008

  • FixedPhalconMvcViewEngineVolt::compileto not throw exception in case of absence the file andstatoption is true #12849

  • FixedPhalconMvcCollection::getReservedAttributesto workaround for PHP 7/7.1 bug with static null when extending class phalcon/incubator#762, phalcon/incubator#760

  • FixedPhalconCacheBackendRedis::__constructandPhalconCacheBackendRedis::_connectto correctly handle the Redis auth option #12736

  • FixedPhalconMvcCollection::getReservedAttributes, added missing properties to reserved attributes phalcon/incubator#762, phalcon/incubator#760

  • FixedPhalconMvcRouterAnnotation::processActionAnnotationto support PATCH request

Continue reading:

PhalconPHP 3.2.0 正式发布,高性能 PHP 框架