All notable changes to this project will be documented in this file.
- DatabaseConnection:
->truncate($table)
. - [!!!] The Framework now can define routes itself and does so. Overwrite the
'.'
route in yourroutes.php
with a responder or withFALSE
. - Signal in the
Router
to edit the route definitions. - Repositories now have a
->remove()
method to delete model objects. ViewFactory
to instanciate a view object whenever needed- Signal in the
ViewFactory
to make implementations of other templating engines possible. - Configure error pages for HTTP status codes in your
routes.php
.
- Raised Twig version to 1.17
- DatabaseConnection: Where statements can now test fields against NULL (with and without the negation operator
!
) - DatabaseConnection: Fields in where statements can now have inequality modifiers: <, >, <= and >=
- MailService now defaults to sending with PHP
mail()
. You have to setmail.method = "smtp"
in yoursettings.ini
to use SMTP.
- Activating plugins via
settings.ini
was deprecated. Plugins should auto-initialize themselves via composer. (See https://github.com/app-zap/PHPFramework-EmptyPlugin)
- Removed numerous methods that were deprecated and marked for removal in 1.5.
- MailService and MailMessage
- A controller can implement the
getTemplateName()
method to modify the default twig template name. Configuration::getSection()
now has an optional 3rd parameter (array)$defaultValues
- Simplified routing expressions in
routes.php
- Deprecated
AbstractController->handle_not_supported_method()
. UseAbstractController->handleNotSupportedMethod()
instead. - Deprecated
AbstractController->require_http_authentication
. UseAbstractController->requireHttpAuthentication
instead. - Deprecated
AbstractDomainRepository->create_identity_model()
. UseAbstractDomainRepository->createIdentityModel()
instead. - Deprecated
AbstractDomainRepository->find_all()
. UseAbstractDomainRepository->findAll()
instead. - Deprecated
AbstractDomainRepository->find_by_id()
. UseAbstractDomainRepository->findById()
instead. - Deprecated
AbstractDomainRepository->query_many()
. UseAbstractDomainRepository->queryMany()
instead. - Deprecated
AbstractDomainRepository->query_one()
. UseAbstractDomainRepository->queryOne()
instead. - Deprecated
AbstractModelCollection->get_by_id()
. UseAbstractModelCollection->getById()
instead. - Deprecated
AbstractModelCollection->remove_item()
. UseAbstractModelCollection->remove()
instead. - Deprecated
AbstractModelCollection->set_item()
. UseAbstractModelCollection->add()
instead. - Deprecated
AbstractView->json_output()
. UseAbstractView->jsonOutput()
instead. - Deprecated
AbstractView->set_template_name()
. UseAbstractView->setTemplateName()
instead. - Deprecated
BaseHttpAuthentication->check_authentication()
. UseBaseHttpAuthentication->checkAuthentication()
instead. - Deprecated
BaseSessionInterface->clear_all()
. UseBaseSessionInterface->clearAll()
instead. - Deprecated
Configuration::remove_key()
. UseConfiguration::remove()
instead. - Deprecated
Configuration::remove_section()
. UseConfiguration::removeSection()
instead. - Deprecated
DatabaseConnection->is_connected()
. UseDatabaseConnection->isConnected()
instead. - Deprecated
DatabaseConnection->last_id()
. UseDatabaseConnection->lastId()
instead. - Deprecated
Dispatcher->get_request_method()
. UseDispatcher->getRequestMethod()
instead. - Deprecated
Dispatcher->get_request_method()
. UseDispatcher->getRequestMethod()
instead. - Deprecated
EntityMapper->object_to_record()
. UseEntityMapper->objectToRecord()
instead. - Deprecated
EntityMapper->record_to_object()
. UseEntityMapper->recordToObject()
instead. - Deprecated
EntityMapper->scalarize_value()
. UseEntityMapper->scalarizeValue()
instead. - Deprecated
HttpStatus::get_status()
UseHttpStatus::getStatus()
instead. - Deprecated
HttpStatus::send_headers()
UseHttpStatus::sendHeaders()
instead. - Deprecated
HttpStatus::set_status()
UseHttpStatus::setStatus()
instead. - Deprecated
Nomenclature::collectionclassname_to_repositoryclassname()
UseNomenclature::collectionclassnameToRepositoryclassname()
instead. - Deprecated
Nomenclature::fieldname_to_getter()
UseNomenclature::fieldnameToGetter()
instead. - Deprecated
Nomenclature::fieldname_to_setter()
UseNomenclature::fieldnameToSetter()
instead. - Deprecated
Nomenclature::getter_to_fieldname()
UseNomenclature::getterToFieldname()
instead. - Deprecated
Nomenclature::modelclassname_to_collectionclassname()
UseNomenclature::modelClassnameToCollectionClassname()
instead. - Deprecated
Nomenclature::modelclassname_to_repositoryclassname()
UseNomenclature::modelClassnameToRepositoryClassname()
instead. - Deprecated
Nomenclature::repositoryclassname_to_collectionclassname()
UseNomenclature::repositoryClassnameToCollectionClassname()
instead. - Deprecated
Nomenclature::repositoryclassname_to_modelclassname()
UseNomenclature::repositoryClassnameToModelClassname()
instead. - Deprecated
Nomenclature::repositoryclassname_to_tablename()
UseNomenclature::repositoryClassnameToTablename()
instead. - Deprecated
Router::get_parameters()
UseRouter::getParameters()
instead. - Deprecated
Router::get_responder()
UseRouter::getResponder()
instead. - Deprecated
Singleton::get_instance()
UseSingleton::getInstance()
instead. - Deprecated
TwigView->add_output_filter()
UseTwigView->addOutputFilter()
instead. - Deprecated
TwigView->add_output_function()
UseTwigView->addOutputFunction()
instead. - Deprecated
TwigView->has_output_filter()
UseTwigView->hasOutputFilter()
instead. - Deprecated
TwigView->has_output_function()
UseTwigView->hasOutputFunction()
instead. - Deprecated lower_camel_cased setters and getters in model classes. Use lowerCamelCased method names instead.