Deprecated
Table of Contents
AccordionUtil.php
Line | Element | Reason |
---|---|---|
18 | AccordionUtil | |
145 | AccordionUtil::structureAccordionStartStop() | Use Utils service instead |
ArrayUtil.php
Line | Element | Reason |
---|---|---|
91 | ArrayUtil::removeValue() | Use Utils service instead |
125 | ArrayUtil::insertInArrayByName() | Use utils service instead |
215 | ArrayUtil::insertBeforeKey() | Use Utils::insertBeforeKey() instead |
FileCache.php
Line | Element | Reason |
---|---|---|
27 | FileCache | Will be removed in version 3.0. Use FileStorageUtil instead. |
84 | FileCache::exist() | Will be removed in 3.0. Use FileStorageUtil instead |
112 | FileCache::get() | Will be removed in 3.0. Use FileStorageUtil instead |
151 | FileCache::generateCacheName() | Will be removed in 3.0. Use FileStorageUtil instead |
175 | FileCache::getCacheFileName() | Will be removed in 3.0. Use FileStorageUtil instead |
193 | FileCache::getCacheFilePath() | Will be removed in 3.0. Use FileStorageUtil instead |
205 | FileCache::getAbsoluteCachePath() | Will be removed in 3.0. Use FileStorageUtil instead |
213 | FileCache::getNamespace() | Will be removed in 3.0. Use FileStorageUtil instead |
221 | FileCache::setNamespace() | Will be removed in 3.0. Use FileStorageUtil instead |
232 | FileCache::getCacheFolder() | Will be removed in 3.0. Use FileStorageUtil instead |
242 | FileCache::setCacheFolder() | Will be removed in 3.0. Use FileStorageUtil instead |
253 | FileCache::getCacheFolderWithNamespace() | Will be removed in 3.0. Use FileStorageUtil instead |
ContainerUtil.php
Line | Element | Reason |
---|---|---|
21 | ContainerUtil | use utils service instead |
45 | ContainerUtil::getActiveBundles() | Use kernel.bundles parameter or KernelInterface::getBundles() |
59 | ContainerUtil::isBundleActive() | Use utils service instead |
71 | ContainerUtil::isBackend() | Use utils service instead |
83 | ContainerUtil::isFrontend() | Use utils service instead |
95 | ContainerUtil::isFrontendCron() | Use utils service instead |
107 | ContainerUtil::isInstall() | Use utils service instead |
119 | ContainerUtil::isDev() | Use utils service instead |
131 | ContainerUtil::getCurrentRequest() | Use RequestStack::getCurrentRequest() instead |
143 | ContainerUtil::log() | Use utils service instead |
157 | ContainerUtil::getProjectDir() | Use KernelInterface::getProjectDir or kernel.project_dir parameter |
171 | ContainerUtil::getWebDir() | Use contao.web_dir parameter |
188 | ContainerUtil::getBundlePath() | Use utils service instead |
213 | ContainerUtil::getBundleResourcePath() | Use utils service instead |
234 | ContainerUtil::mergeConfigFile() | Use ConfigPluginInterface with class_exist instead |
256 | ContainerUtil::isMaintenanceModeActive() | Use utils service instead |
268 | ContainerUtil::isPreviewMode() | Use utils service instead |
DatabaseUtil.php
Line | Element | Reason |
---|---|---|
329 | DatabaseUtil::createWhereForSerializedBlob() | Use Utils service instead |
DcaUtil.php
Line | Element | Reason |
---|---|---|
114 | DcaUtil::getModalEditLink() | Use DcaUtil::getPopupWizardLink() instead |
153 | DcaUtil::getArchiveModalEditLink() | Use DcaUtil::getPopupWizardLink() instead |
423 | DcaUtil::setDateAdded() | Use DateAddedField instead |
441 | DcaUtil::setDateAddedOnCopy() | Use DateAddedField instead |
464 | DcaUtil::getFields() | Use Utils service instead |
768 | DcaUtil::addAuthorFieldAndCallback() | Use AuthorField::register() instead |
ExtendEntityFinderEvent.php
Line | Element | Reason |
---|---|---|
16 | ExtendEntityFinderEvent | Use EntityFinderFindEvent instead |
FileUtil.php
Line | Element | Reason |
---|---|---|
198 | FileUtil::getPathFromUuid() | Use Utils::file instead |
399 | FileUtil::getPreviewFromPdf() | Dublicate to PdfPreview util |
ModelUtil.php
Line | Element | Reason |
---|---|---|
73 | ModelUtil::setDefaultsFromDca() | Use DcaUtil::setDefaultsFromDca instead |
89 | ModelUtil::findModelInstanceByPk() | Use Utils service instead |
114 | ModelUtil::findModelInstancesBy() | Use Utils service instead |
146 | ModelUtil::findOneModelInstanceBy() | Use Utils service instead |
178 | ModelUtil::findMultipleModelInstancesByIds() | Use Utils service instead |
206 | ModelUtil::findModelInstanceByIdOrAlias() | Use Utils service instead |
380 | ModelUtil::findParentsRecursively() | Use Utils service instead |
560 | ModelUtil::addPublishedCheckToModelArrays() | Use Utils service instead |
AbstractPdfWriter.php
Line | Element | Reason |
---|---|---|
18 | AbstractPdfWriter | Use PdfCreator instead |
PdfWriter.php
Line | Element | Reason |
---|---|---|
20 | PdfWriter | Use PdfCreatorFactory::createInstance(MpdfCreator::getType()) instead |
AbstractPdfCreator.php
Line | Element | Reason |
---|---|---|
16 | AbstractPdfCreator | PdfCreator was moved into it's own bundle (heimrichhannot/pdf-creator) |
BeforeCreateLibraryInstanceCallback.php
Line | Element | Reason |
---|---|---|
16 | BeforeCreateLibraryInstanceCallback | PdfCreator was moved into it's own bundle (heimrichhannot/pdf-creator) |
BeforeOutputPdfCallback.php
Line | Element | Reason |
---|---|---|
16 | BeforeOutputPdfCallback | PdfCreator was moved into it's own bundle (heimrichhannot/pdf-creator) |
MpdfCreator.php
Line | Element | Reason |
---|---|---|
24 | MpdfCreator | PdfCreator was moved into it's own bundle (heimrichhannot/pdf-creator) |
144 | MpdfCreator::addFontDirectories() | Use addFont instead |
PdfCreatorFactory.php
Line | Element | Reason |
---|---|---|
18 | PdfCreatorFactory | PdfCreator was moved into it's own bundle (heimrichhannot/pdf-creator) |
RequestUtil.php
Line | Element | Reason |
---|---|---|
18 | RequestUtil | Use Utils service instead |
38 | RequestUtil::isNewVisitor() | Use Utils service instead |
RoutingUtil.php
Line | Element | Reason |
---|---|---|
17 | RoutingUtil | Use Utils service instead |
39 | RoutingUtil::generateBackendRoute() | Use utils service instead |
StringUtil.php
Line | Element | Reason |
---|---|---|
22 | StringUtil | Use Utils service instead |
57 | StringUtil::startsWith() | Use utils service instead |
73 | StringUtil::endsWith() | Use utils service instead |
90 | StringUtil::camelCaseToDashed() | Use utils service instead |
105 | StringUtil::camelCaseToSnake() | Use utils service instead |
117 | StringUtil::randomChar() | Use utils service instead |
129 | StringUtil::randomLetter() | Use utils service instead |
141 | StringUtil::randomNumber() | Use utils service instead |
153 | StringUtil::random() | Use utils service instead |
167 | StringUtil::truncateHtml() | Use utils service instead |
284 | StringUtil::pregReplaceLast() | Use utils service instead |
294 | StringUtil::removeLeadingAndTrailingSlash() | Use trim($string, "/") instead |
304 | StringUtil::removeLeadingString() | Use utils service instead |
314 | StringUtil::removeTrailingString() | Use utils service instead |
330 | StringUtil::restoreBasicEntities() | use \Contao\StringUtil::restoreBasicEntities() instead |
346 | StringUtil::convertToInlineCss() | Use CssInliner-Library directly in your code. We recommend tijsverkoyen/css-to-inline-styles (https://github.com/tijsverkoyen/CssToInlineStyles) |
365 | StringUtil::html2Text() | Use html2text-library direct in your code, we recommend html2text/html2text (https://github.com/mtibben/html2text) |
385 | StringUtil::lowerCase() | Deprecated in favor of custom callback that could be used with contao service callbacks |
395 | StringUtil::ensureLineBreaks() | use locale util of utils service instead |
413 | StringUtil::convertXmlToArray() | Use utils service instead |
432 | StringUtil::replaceUnicodeEmojisByHtml() | Will be removed in version 3.0. Use elvanto/litemoji (https://github.com/elvanto/litemoji) instead. |
475 | StringUtil::replaceInsertTags() | Use Controller::replaceInsertTags as adapter |
UrlUtil.php
Line | Element | Reason |
---|---|---|
49 | UrlUtil::isNewVisitor() | please use RequestUtil::isNewVisitor() instead |
91 | UrlUtil::addQueryString() | Use Utils service instead |
136 | UrlUtil::removeQueryString() | Use utils service instead |
304 | UrlUtil::prepareUrl() | |
379 | UrlUtil::getBaseUrl() | Use Utils::request() instead |
UserUtil.php
Line | Element | Reason |
---|---|---|
49 | UserUtil::findActiveByGroups() | use Utils service instead |
UrlUtil.php
Line | Element | Reason |
---|---|---|
59 | UrlUtil::removeQueryStringParameterToUrl() | Use removeQueryStringParameterFromUrl() instead |
StringUtil.php
Line | Element | Reason |
---|---|---|
44 | StringUtil::startsWith() | Use str_starts_with instead |
57 | StringUtil::endsWith() | Use str_ends_with instead |