Documentation

Deprecated

Table of Contents

source/system/src/Grav/Common/Assets/Traits/LegacyAssetsTrait.php
source/system/src/Grav/Common/Config/Config.php
source/system/src/Grav/Common/Flex/Types/Pages/PageCollection.php
source/system/src/Grav/Common/Flex/Types/Pages/PageIndex.php
source/system/src/Grav/Common/Flex/Types/Users/Traits/UserObjectLegacyTrait.php
source/system/src/Grav/Common/Form/FormFlash.php
source/system/src/Grav/Common/Grav.php
source/system/src/Grav/Common/GravTrait.php
source/system/src/Grav/Common/Language/Language.php
source/system/src/Grav/Common/Page/Interfaces/PageCollectionInterface.php
source/system/src/Grav/Common/Page/Interfaces/PageLegacyInterface.php
source/system/src/Grav/Common/Page/Media.php
source/system/src/Grav/Common/Page/Medium/StaticResizeTrait.php
source/system/src/Grav/Common/Page/Page.php
source/system/src/Grav/Common/Session.php
source/system/src/Grav/Common/Twig/Extension/GravExtension.php
source/system/src/Grav/Common/Twig/Twig.php
source/system/src/Grav/Common/Twig/TwigExtension.php
source/system/src/Grav/Common/User/DataUser/User.php
source/system/src/Grav/Common/User/Group.php
source/system/src/Grav/Common/User/User.php
source/system/src/Grav/Common/Utils.php
source/system/src/Grav/Console/TerminalObjects/Table.php
source/system/src/Grav/Framework/File/Formatter/FormatterInterface.php
source/system/src/Grav/Framework/Flex/FlexDirectory.php
source/system/src/Grav/Framework/Flex/FlexIndex.php
source/system/src/Grav/Framework/Flex/FlexObject.php
source/system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php
source/system/src/Grav/Framework/Flex/Traits/FlexAuthorizeTrait.php
source/system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php
source/system/src/Grav/Framework/Form/FormFlash.php
source/system/src/Grav/Framework/Form/Interfaces/FormFactoryInterface.php
source/system/src/Grav/Framework/Media/Interfaces/MediaManipulationInterface.php
source/system/src/Grav/Framework/Psr7/AbstractUri.php
source/system/src/Grav/Framework/Route/Route.php

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 ->update($data) instead (same but with data validation & filtering, file upload support).

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 Grav\Common\Media\Traits\StaticResizeTrait instead

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 ->update($data) instead (same but with data validation & filtering, file upload support).

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 ->getFlexType() instead.

FlexObject.php

Line Element Reason
509 FlexObject::blueprints()

Admin compatibility

1146 FlexObject::getType()

Use ->getFlexType() instead.

1163 FlexObject::value()

Use ->getFormValue() method instead.

1176 FlexObject::triggerEvent()

Moved to \Grav\Common\Flex\Traits\FlexObjectTrait

1205 FlexObject::setStorage()

Use ->setMetaData() instead.

1216 FlexObject::getStorage()

Use ->getMetaData() instead.

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.

Search results