From 4052600b2e711f1126487c9b35bffc3bbd0b6a3b Mon Sep 17 00:00:00 2001 From: Manon Cassier <127942915+mcassier31@users.noreply.github.com> Date: Tue, 18 Apr 2023 20:45:26 +0200 Subject: [PATCH] [Docs] Update Enabling Process for Perspective Editor (#130) * updateEnablingProcess-PerspectiveEditor * versioning --- doc/01_Installation.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/doc/01_Installation.md b/doc/01_Installation.md index fda8b2f..a48b80c 100644 --- a/doc/01_Installation.md +++ b/doc/01_Installation.md @@ -1,11 +1,39 @@ # Installation +## Bundle Installation +### For Pimcore >= 10.5 +To install Pimcore Perspective Editor for Pimcore 10.5 or higher, follow the three steps below: -The installation of this bundle follows Pimcore standards. To install use following commands: +1. Install the required dependencies: +```bash +composer require pimcore/perspective-editor +``` + +2. Make sure the bundle is enabled in the `config/bundles.php` file. The following lines should be added: + +```php +use Pimcore\Bundle\PerspectiveEditorBundle\PimcorePerspectiveEditorBundle; +// ... + +return [ + // ... + PimcorePerspectiveEditorBundle::class => ['all' => true], + // ... +]; +``` + +3. Install the bundle: + +```bash +bin/console pimcore:bundle:install PimcorePerspectiveEditorBundle +``` + +### For Older Versions +To install the Perspective Editor bundle for older versions of Pimcore, please run the following commands instead: ```bash composer require pimcore/perspective-editor -./bin/console pimcore:bundle:enable PimcorePerspectiveEditorBundle -./bin/console pimcore:bundle:install PimcorePerspectiveEditorBundle +bin/console pimcore:bundle:enable PimcorePerspectiveEditorBundle +bin/console pimcore:bundle:install PimcorePerspectiveEditorBundle ``` Installation routine just adds an additional permission to `users_permission_definitions` table.