Deprecated
Table of Contents
LegacyAssetsTrait.php
| Line | Element | Reason |
|---|---|---|
| 114 | LegacyAssetsTrait::addAsyncJs() | Please use dynamic method with ['loading' => 'async']. |
| 131 | LegacyAssetsTrait::addDeferJs() | Please use dynamic method with ['loading' => 'defer']. |
Config.php
| Line | Element | Reason |
|---|---|---|
| 150 | Config::getLanguages() | Use Grav::instance()['languages'] instead. |
PageCollection.php
| Line | Element | Reason |
|---|---|---|
| 431 | PageCollection::all() | Not needed anymore in Flex Pages (does nothing). |
PageIndex.php
| Line | Element | Reason |
|---|---|---|
| 1004 | PageIndex::all() | Not needed anymore in Flex Pages (does nothing). |
UserObjectLegacyTrait.php
| Line | Element | Reason |
|---|---|---|
| 31 | UserObjectLegacyTrait::merge() | Use |
| 46 | UserObjectLegacyTrait::getAvatarMedia() | Use ->getAvatarImage() method instead. |
| 59 | UserObjectLegacyTrait::avatarUrl() | Use ->getAvatarUrl() method instead. |
| 74 | UserObjectLegacyTrait::authorise() | Use ->authorize() method instead. |
| 87 | UserObjectLegacyTrait::count() | Method makes no sense for user account. |
FormFlash.php
| Line | Element | Reason |
|---|---|---|
| 27 | FormFlash::getLegacyFiles() | For backwards compatibility only, do not use |
| 52 | FormFlash::uploadFile() | For backwards compatibility only, do not use |
| 84 | FormFlash::cropFile() | For backwards compatibility only, do not use |
Grav.php
| Line | Element | Reason |
|---|---|---|
| 424 | Grav::exit() | Use $grav->close() instead. |
GravTrait.php
| Line | Element | Reason |
|---|---|---|
| 15 | GravTrait | Use Grav::instance() instead. |
| 24 | GravTrait::getGrav() | Use Grav::instance() instead. |
Language.php
| Line | Element | Reason |
|---|---|---|
| 594 | Language::getBrowserLanguages() | No longer used - using content negotiation. |
PageCollectionInterface.php
| Line | Element | Reason |
|---|---|---|
| 226 | PageCollectionInterface::modular() | Use $this->modules() instead |
| 235 | PageCollectionInterface::nonModular() | Use $this->pages() instead |
PageLegacyInterface.php
| Line | Element | Reason |
|---|---|---|
| 307 | PageLegacyInterface::orderDir() | |
| 321 | PageLegacyInterface::orderBy() | |
| 330 | PageLegacyInterface::orderManual() | |
| 340 | PageLegacyInterface::maxCount() | |
| 349 | PageLegacyInterface::modular() | Use ->isModule() or ->modularTwig() method instead. |
Media.php
| Line | Element | Reason |
|---|---|---|
| 282 | Media::path() | Use $this->getPath() instead. |
StaticResizeTrait.php
| Line | Element | Reason |
|---|---|---|
| 21 | StaticResizeTrait | Use |
Page.php
| Line | Element | Reason |
|---|---|---|
| 2241 | Page::orderDir() | |
| 2268 | Page::orderBy() | |
| 2286 | Page::orderManual() | |
| 2305 | Page::maxCount() | |
| 2351 | Page::modular() | Use ->isModule() or ->modularTwig() method instead. |
Session.php
| Line | Element | Reason |
|---|---|---|
| 32 | Session::instance() | Use ->getInstance() method instead. |
| 72 | Session::all() | Use ->getAll() method instead. |
| 85 | Session::started() | Use ->isStarted() method instead. |
GravExtension.php
| Line | Element | Reason |
|---|---|---|
| 1535 | GravExtension::pageHeaderVarFunc() | Use themeVarFunc() instead |
Twig.php
| Line | Element | Reason |
|---|---|---|
| 569 | Twig::setAutoescape() | Auto-escape should always be turned on to protect against XSS issues (can be disabled per template file). |
TwigExtension.php
| Line | Element | Reason |
|---|---|---|
| 19 | TwigExtension | Use GravExtension instead |
User.php
| Line | Element | Reason |
|---|---|---|
| 245 | User::merge() | Use |
| 258 | User::getAvatarMedia() | Use ->getAvatarImage() method instead. |
| 271 | User::avatarUrl() | Use ->getAvatarUrl() method instead. |
| 286 | User::authorise() | Use ->authorize() method instead. |
| 299 | User::count() | Method makes no sense for user account. |
Group.php
| Line | Element | Reason |
|---|---|---|
| 22 | Group | Use $grav['user_groups'] instead of this class. In type hints, please use UserGroupInterface. |
| 30 | Group::groups() | use $grav['user_groups'] Flex UserGroupCollection instead |
| 43 | Group::groupNames() | use $grav['user_groups'] Flex UserGroupCollection instead |
| 63 | Group::groupExists() | use $grav['user_groups'] Flex UserGroupCollection instead |
| 77 | Group::load() | use $grav['user_groups'] Flex UserGroupCollection instead |
| 146 | Group::remove() | use $grav['user_groups'] Flex UserGroupCollection instead |
User.php
| Line | Element | Reason |
|---|---|---|
| 87 | User | Use $grav['accounts'] instead of static calls. In type hints, use UserInterface. |
| 98 | User::load() | Use $grav['accounts']->load(...) instead. |
| 115 | User::find() | Use $grav['accounts']->find(...) instead. |
| 129 | User::remove() | Use $grav['accounts']->delete(...) instead. |
Utils.php
| Line | Element | Reason |
|---|---|---|
| 1358 | Utils::resolve() | Use ->getDotNotation() method instead. |
Table.php
| Line | Element | Reason |
|---|---|---|
| 17 | Table | Use Symfony Console Table |
FormatterInterface.php
| Line | Element | Reason |
|---|---|---|
| 10 | FormatterInterface | Use Grav\Framework\File\Interfaces\FileFormatterInterface instead |
FlexDirectory.php
| Line | Element | Reason |
|---|---|---|
| 1110 | FlexDirectory::getType() | Use ->getFlexType() method instead. |
| 1123 | FlexDirectory::update() | Use $object->update()->save() instead. |
| 1174 | FlexDirectory::remove() | Use $object->delete() instead. |
FlexIndex.php
| Line | Element | Reason |
|---|---|---|
| 805 | FlexIndex::updateIndexData() | Use static ::updateObjectMeta() method instead. |
| 922 | FlexIndex::getType() | Use |
FlexObject.php
| Line | Element | Reason |
|---|---|---|
| 509 | FlexObject::blueprints() | Admin compatibility |
| 1146 | FlexObject::getType() | Use |
| 1163 | FlexObject::value() | Use ->getFormValue() method instead. |
| 1176 | FlexObject::triggerEvent() | Moved to \Grav\Common\Flex\Traits\FlexObjectTrait |
| 1205 | FlexObject::setStorage() | Use |
| 1216 | FlexObject::getStorage() | Use |
| 1230 | FlexObject::getTemplate() | Moved to \Grav\Common\Flex\Traits\GravTrait |
| 1254 | FlexObject::getFlexContainer() | Moved to \Grav\Common\Flex\Traits\GravTrait |
| 1268 | FlexObject::getActiveUser() | Moved to \Grav\Common\Flex\Traits\GravTrait |
| 1282 | FlexObject::getAuthorizeScope() | Moved to \Grav\Common\Flex\Traits\GravTrait |
PageLegacyTrait.php
| Line | Element | Reason |
|---|---|---|
| 840 | PageLegacyTrait::modular() | Use ->isModule() or ->modularTwig() method instead. |
FlexAuthorizeTrait.php
| Line | Element | Reason |
|---|---|---|
| 103 | FlexAuthorizeTrait::isAuthorizedSuperAdmin() | Not needed for Flex Users. |
FlexMediaTrait.php
| Line | Element | Reason |
|---|---|---|
| 558 | FlexMediaTrait::checkMediaFilename() | Use Media class that implements MediaUploadInterface instead. |
FormFlash.php
| Line | Element | Reason |
|---|---|---|
| 169 | FormFlash::getUniqieId() | Use '->getUniqueId()' method instead. |
FormFactoryInterface.php
| Line | Element | Reason |
|---|---|---|
| 30 | FormFactoryInterface::createPageForm() | Use FormFactory::createFormByPage() instead. |
MediaManipulationInterface.php
| Line | Element | Reason |
|---|---|---|
| 22 | MediaManipulationInterface | Not used currently |
AbstractUri.php
| Line | Element | Reason |
|---|---|---|
| 22 | AbstractUri | Using message PSR-7 decorators instead. |
Route.php
| Line | Element | Reason |
|---|---|---|
| 348 | Route::__toString() | Use ->toString(true) or ->getUri() instead. |