nucleos / SonataCKEditorBundle

⚙️ Sonata media management for the CKEditor
https://nucleos.rocks
MIT License
3 stars 1 forks source link

Dependency on a non-existent service "sonata.media.admin.media" #87

Open kniziol opened 1 year ago

kniziol commented 1 year ago

Environment

Packages

composer show --latest ``` Color legend: - patch or minor release available - update recommended - major release available - update possible - up to date version Direct dependencies required in composer.json: composer/package-versions-deprecated 1.11.99.5 1.11.99.5 Composer plugin that provides efficient querying for installed package versions (no runtime IO) deployer/deployer v7.3.1 v7.3.1 Deployment Tool doctrine/annotations 2.0.1 2.0.1 Docblock Annotations Parser doctrine/doctrine-bundle 2.9.1 2.10.2 Symfony DoctrineBundle doctrine/doctrine-fixtures-bundle 3.4.4 3.4.4 Symfony DoctrineFixturesBundle doctrine/doctrine-migrations-bundle 3.2.2 3.2.4 Symfony DoctrineMigrationsBundle doctrine/orm 2.16.1 2.16.2 Object-Relational-Mapper for PHP dompdf/dompdf v1.2.2 v2.0.3 DOMPDF is a CSS 2.1 compliant HTML to PDF converter excelwebzone/recaptcha-bundle v1.5.38 v1.5.39 This bundle provides easy reCAPTCHA form field integration exercise/htmlpurifier-bundle v3.1.0 4.1.2 HTMLPurifier integration for your Symfony project friends-of-behat/symfony-extension v2.4.0 v2.4.1 Integrates Behat with Symfony. friendsofphp/php-cs-fixer v3.17.0 v3.26.1 A tool to automatically fix PHP code style friendsofsymfony/jsrouting-bundle 2.8.0 3.3.0 A pretty nice way to expose your Symfony2 routing to client applications. hautelook/alice-bundle 2.12.0 2.12.0 Symfony bundle to manage fixtures with Alice and Faker. infection/infection 0.26.21 0.27.0 Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure th... knplabs/knp-snappy-bundle v1.9.1 v1.9.2 Easily create PDF and images in Symfony by converting Twig/HTML templates. liip/test-fixtures-bundle 2.6.0 2.6.0 This bundles enables efficient loading of Doctrine fixtures in functional test-cases for Symfony applica... meritoo/common-bundle dev-develop f60b628 dev-develop f60b628 Common & useful classes, resources, extensions. Based on Symfony framework. mhujer/breadcrumbs-bundle 1.5.8 1.5.8 Breadcrumbs bundle for Symfony nucleos/sonata-ckeditor-bundle 1.0.0 1.0.0 Symfony Bundle that allows sonata media management for the CKEditor. pgrimaud/instagram-user-feed 6.16.4 6.16.4 This is a scraper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAut... php-coveralls/php-coveralls v2.5.3 v2.6.0 PHP client library for Coveralls API phpdocumentor/reflection-docblock 5.3.0 5.3.0 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve i... phpoffice/phpspreadsheet 1.29.0 1.29.0 PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine phpstan/phpdoc-parser 1.22.0 1.24.0 PHPDoc parser with support for nullable, intersection and generic types phpstan/phpstan 1.10.19 1.10.34 PHPStan - PHP Static Analysis Tool phpunit/phpunit 9.6.8 10.3.4 The PHP Unit Testing framework. rector/rector 0.17.1 0.18.3 Instant Upgrade and Automated Refactoring of any PHP code sensio/framework-extra-bundle v6.2.10 v6.2.10 This bundle provides a way to configure your controllers with annotations Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead. sonata-project/admin-bundle 4.24.0 4.27.0 The missing Symfony Admin Generator sonata-project/doctrine-extensions 1.18.1 2.3.0 Doctrine2 behavioral extensions sonata-project/doctrine-orm-admin-bundle 4.13.0 4.13.0 Integrate Doctrine ORM into the SonataAdminBundle sonata-project/form-extensions 1.19.1 2.0.0 Symfony form extensions sonata-project/formatter-bundle 5.2.0 5.3.0 Symfony SonataFormatterBundle sonata-project/media-bundle 4.9.0 4.10.4 Symfony SonataMediaBundle sonata-project/translation-bundle 3.2.0 3.3.0 SonataTranslationBundle sonata-project/twig-extensions 1.12.0 2.3.0 Sonata twig extensions squizlabs/php_codesniffer 3.7.2 3.7.2 PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of codin... stof/doctrine-extensions-bundle v1.7.1 v1.8.0 Integration of the gedmo/doctrine-extensions with Symfony symfony/apache-pack v1.0.1 v1.0.1 A pack for Apache support in Symfony symfony/asset v5.4.21 v6.3.0 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image ... symfony/browser-kit v5.4.21 v6.3.2 Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms ... symfony/console v5.4.26 v6.3.4 Eases the creation of beautiful and testable command line interfaces symfony/css-selector v5.4.21 v6.3.2 Converts CSS selectors to XPath expressions symfony/debug-bundle v5.4.21 v6.3.2 Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBri... symfony/doctrine-messenger v5.4.23 v6.3.1 Symfony Doctrine Messenger Bridge symfony/dotenv v5.4.22 v6.3.0 Registers environment variables from a .env file symfony/expression-language v5.4.21 v6.3.0 Provides an engine that can compile and evaluate expressions symfony/flex v2.2.5 v2.3.3 Composer plugin for Symfony symfony/form v5.4.26 v6.3.2 Allows to easily create, process and reuse HTML forms symfony/framework-bundle v5.4.26 v6.3.4 Provides a tight integration between Symfony components and the Symfony full-stack framework symfony/http-client v5.4.23 v6.3.2 Provides powerful methods to fetch HTTP resources synchronously or asynchronously symfony/intl v5.4.23 v6.3.2 Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU lib... symfony/mailer v5.4.22 v6.3.0 Helps sending emails symfony/maker-bundle v1.48.0 v1.51.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forg... symfony/mime v5.4.23 v6.3.3 Allows manipulating MIME messages symfony/monolog-bundle v3.8.0 v3.8.0 Symfony MonologBundle symfony/notifier v5.4.22 v6.3.0 Sends notifications via one or more channels (email, SMS, ...) symfony/phpunit-bridge v6.2.10 v6.3.2 Provides utilities for PHPUnit, especially user deprecation notices management symfony/process v5.4.24 v6.3.4 Executes commands in sub-processes symfony/property-access v5.4.26 v6.3.2 Provides functions to read and write from/to an object or array using a simple string notation symfony/property-info v5.4.24 v6.3.0 Extracts information about PHP class' properties using metadata of popular sources symfony/proxy-manager-bridge v5.4.21 v6.3.0 Provides integration for ProxyManager with various Symfony components symfony/runtime v5.4.22 v6.3.2 Enables decoupling PHP applications from global state symfony/security-bundle v5.4.22 v6.3.4 Provides a tight integration of the Security component into the Symfony full-stack framework symfony/serializer v5.4.23 v6.3.4 Handles serializing and deserializing data structures, including object graphs, into array structures or... symfony/stopwatch v5.4.21 v6.3.0 Provides a way to profile code symfony/string v5.4.26 v6.3.2 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters... symfony/translation v5.4.24 v6.3.3 Provides tools to internationalize your application symfony/twig-bundle v5.4.27 v6.3.0 Provides a tight integration of Twig into the Symfony full-stack framework symfony/validator v5.4.26 v6.3.4 Provides tools to validate values symfony/var-dumper v5.4.26 v6.3.4 Provides mechanisms for walking through any arbitrary PHP variable symfony/web-link v5.4.21 v6.3.0 Manages links between resources symfony/web-profiler-bundle v5.4.21 v6.3.2 Provides a development tool that gives detailed information about the execution of any request symfony/webpack-encore-bundle v1.16.1 v2.0.1 Integration with your Symfony app & Webpack Encore! symfony/yaml v5.4.23 v6.3.3 Loads and dumps YAML files twig/extra-bundle v3.6.0 v3.7.1 A Symfony bundle for extra Twig extensions twig/intl-extra v3.6.0 v3.7.1 A Twig extension for Intl twig/string-extra v3.6.0 v3.7.1 A Twig extension for Symfony String twig/twig v3.7.0 v3.7.1 Twig, the flexible, fast, and secure template language for PHP vich/uploader-bundle 1.23.1 2.2.0 Ease file uploads attached to entities vimeo/psalm 4.30.0 5.15.0 A static analysis tool for finding errors in PHP applications Transitive dependencies not required in composer.json: amphp/amp v2.6.2 v3.0.0 A non-blocking concurrency framework for PHP applications. amphp/byte-stream v1.8.1 v2.0.2 A stream abstraction to make working with non-blocking I/O simple. behat/behat v3.13.0 v3.13.0 Scenario-oriented BDD framework for PHP behat/gherkin v4.9.0 v4.9.0 Gherkin DSL parser for PHP behat/transliterator v1.5.0 v1.5.0 String transliterator colinodell/json5 v2.3.0 v2.3.0 UTF-8 compatible JSON5 parser for PHP composer/pcre 3.1.0 3.1.0 PCRE wrapping library that offers type-safe preg_* replacements. composer/semver 3.3.2 3.4.0 Semver library that offers utilities, version constraint parsing and validation. composer/xdebug-handler 3.0.3 3.0.3 Restarts a process without Xdebug. dnoegel/php-xdg-base-dir v0.1.1 v0.1.1 implementation of xdg base directory specification for php doctrine/cache 2.2.0 2.2.0 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such a... doctrine/collections 2.1.3 2.1.3 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays. doctrine/common 3.4.3 3.4.3 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine proj... doctrine/data-fixtures 1.6.6 1.6.7 Data Fixtures for all Doctrine Object Managers doctrine/dbal 3.6.5 3.6.6 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and ... doctrine/deprecations v1.1.1 v1.1.1 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all de... doctrine/event-manager 1.2.0 2.0.0 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctr... doctrine/inflector 2.0.8 2.0.8 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/low... doctrine/instantiator 1.5.0 2.0.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors doctrine/lexer 2.1.0 3.0.0 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers. doctrine/migrations 3.6.0 3.6.0 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer ... doctrine/persistence 3.2.0 3.2.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doct... doctrine/sql-formatter 1.1.3 1.1.3 a PHP SQL highlighting library egulias/email-validator 4.0.1 4.0.1 A library for validating emails against several RFCs ezyang/htmlpurifier v4.16.0 v4.16.0 Standards compliant HTML filter written in PHP fakerphp/faker v1.22.0 v1.23.0 Faker is a PHP library that generates fake data for you. felixfbecker/advanced-json-rpc v3.2.1 v3.2.1 A more advanced JSONRPC implementation felixfbecker/language-server-protocol v1.5.2 v1.5.2 PHP classes for the Language Server Protocol fidry/cpu-core-counter 0.4.1 0.5.1 Tiny utility to get the number of CPU cores. friendsofphp/proxy-manager-lts v1.0.15 v1.0.16 Adding support for a wider range of PHP versions to ocramius/proxy-manager friendsofsymfony/ckeditor-bundle 2.4.0 2.4.0 Provides a CKEditor integration for your Symfony project. gedmo/doctrine-extensions v3.12.0 v3.13.0 Doctrine behavioral extensions google/recaptcha 1.3.0 1.3.0 Client library for reCAPTCHA, a free service that protects websites from spam and abuse. guzzlehttp/guzzle 7.7.0 7.8.0 Guzzle is a PHP HTTP client library guzzlehttp/promises 2.0.0 2.0.1 Guzzle promises library guzzlehttp/psr7 2.5.0 2.6.1 PSR-7 message implementation that also provides common utility methods imagine/imagine 1.3.4 1.3.5 Image processing for PHP 5.3 infection/abstract-testframework-adapter 0.5.0 0.5.0 Abstract Test Framework Adapter for Infection infection/extension-installer 0.1.2 0.1.2 Infection Extension Installer infection/include-interceptor 0.2.5 0.2.5 Stream Wrapper: Include Interceptor. Allows to replace included (autoloaded) file with another one. jms/metadata 2.8.0 2.8.0 Class/method/property metadata management in PHP jms/serializer 3.23.0 3.28.0 Library for (de-)serializing data of any complexity; supports XML, and JSON. justinrainbow/json-schema 5.2.12 5.2.12 A library to validate a json schema. knplabs/gaufrette v0.11.1 v0.11.1 PHP library that provides a filesystem abstraction layer knplabs/knp-menu v3.4.0 v3.4.0 An object oriented menu library knplabs/knp-menu-bundle v3.2.0 v3.2.0 This bundle provides an integration of the KnpMenu library knplabs/knp-snappy v1.4.2 v1.4.4 PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtml... laminas/laminas-code 4.11.0 4.12.0 Extensions to the PHP Reflection API, static code scanning, and code generation maennchen/zipstream-php 3.1.0 3.1.0 ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk ... markbaker/complex 3.0.2 3.0.2 PHP Class for working with complex numbers markbaker/matrix 3.0.1 3.0.1 PHP Class for working with matrices meritoo/common-library dev-develop fbbea09 dev-develop fbbea09 Useful classes, methods, extensions etc. monolog/monolog 2.9.1 3.4.0 Sends your logs to files, sockets, inboxes, databases and various web services myclabs/deep-copy 1.11.1 1.11.1 Create deep copies (clones) of your objects nelmio/alice 3.12.2 3.12.2 Expressive fixtures generator netresearch/jsonmapper v4.2.0 v4.2.0 Map nested JSON structures onto PHP classes nikic/php-parser v4.15.5 v4.17.1 A PHP parser written in PHP nyholm/psr7 1.8.0 1.8.0 A fast PHP7 implementation of PSR-7 ondram/ci-detector 4.1.0 4.1.0 Detect continuous integration environment and provide unified access to properties of current build openlss/lib-array2xml 1.0.0 1.0.0 Array2XML conversion library credit to lalit.org phar-io/manifest 2.0.3 2.0.3 Component for reading phar.io manifest information from a PHP Archive (PHAR) phar-io/version 3.2.1 3.2.1 Library for handling version information and constraints phenx/php-font-lib 0.5.4 0.5.4 A library to read, parse, export and make subsets of different types of font files. phenx/php-svg-lib 0.4.1 0.5.0 A library to read, parse and export to PDF SVG files. phpdocumentor/reflection-common 2.2.0 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure phpdocumentor/type-resolver 1.7.2 1.7.3 A PSR-5 based resolver of Class names, Types and Structural Element Names phpunit/php-code-coverage 9.2.26 10.1.5 Library that provides collection, processing, and rendering functionality for PHP code coverage informat... phpunit/php-file-iterator 3.0.6 4.1.0 FilterIterator implementation that filters files based on a list of suffixes. phpunit/php-invoker 3.1.1 4.0.0 Invoke callables with a timeout phpunit/php-text-template 2.0.4 3.0.1 Simple template engine. phpunit/php-timer 5.0.3 6.0.0 Utility class for timing psr/cache 2.0.0 3.0.0 Common interface for caching libraries psr/container 1.1.2 2.0.2 Common Container Interface (PHP FIG PSR-11) psr/event-dispatcher 1.0.0 1.0.0 Standard interfaces for event handling. psr/http-client 1.0.2 1.0.2 Common interface for HTTP clients psr/http-factory 1.0.2 1.0.2 Common interfaces for PSR-7 HTTP message factories psr/http-message 1.1 2.0 Common interface for HTTP messages psr/link 1.1.1 2.0.1 Common interfaces for HTTP links psr/log 2.0.0 3.0.0 Common interface for logging libraries psr/simple-cache 3.0.0 3.0.0 Common interfaces for simple caching ralouphie/getallheaders 3.0.3 3.0.3 A polyfill for getallheaders. sabberworm/php-css-parser 8.4.0 8.4.0 Parser for CSS Files written in PHP sanmai/later 0.1.2 0.1.2 Later: deferred wrapper object sanmai/pipeline v6.7 v6.8.1 General-purpose collections pipeline sebastian/cli-parser 1.0.1 2.0.0 Library for parsing CLI options sebastian/code-unit 1.0.8 2.0.0 Collection of value objects that represent the PHP code units sebastian/code-unit-reverse-lookup 2.0.3 3.0.0 Looks up which function or method a line of code belongs to sebastian/comparator 4.0.8 5.0.1 Provides the functionality to compare PHP values for equality sebastian/complexity 2.0.2 3.0.1 Library for calculating the complexity of PHP code units sebastian/diff 4.0.5 5.0.3 Diff implementation sebastian/environment 5.1.5 6.0.1 Provides functionality to handle HHVM/PHP environments sebastian/exporter 4.0.5 5.0.1 Provides the functionality to export PHP variables for visualization sebastian/global-state 5.0.5 6.0.1 Snapshotting of global state sebastian/lines-of-code 1.0.3 2.0.1 Library for counting the lines of code in PHP source code sebastian/object-enumerator 4.0.4 5.0.0 Traverses array structures and object graphs to enumerate all referenced objects sebastian/object-reflector 2.0.4 3.0.0 Allows reflection of object attributes, including inherited and non-public ones sebastian/recursion-context 4.0.5 5.0.0 Provides functionality to recursively process PHP variables sebastian/resource-operations 3.0.3 3.0.3 Provides a list of PHP built-in functions that operate on resources sebastian/type 3.2.1 4.0.0 Collection of value objects that represent the types of the PHP type system sebastian/version 3.0.2 4.0.1 Library that helps with managing the version number of Git-hosted PHP projects sonata-project/block-bundle 4.21.0 5.0.1 Symfony SonataBlockBundle sonata-project/cache 2.2.0 2.2.0 Cache library Package sonata-project/cache is abandoned, you should avoid using it. No replacement was suggested. sonata-project/exporter 3.1.1 3.2.0 Lightweight Exporter library symfony/amqp-messenger v5.4.22 v5.4.28 Symfony AMQP extension Messenger Bridge symfony/cache v5.4.25 v6.3.4 Provides extended PSR-6, PSR-16 (and tags) implementations symfony/cache-contracts v2.5.2 v3.3.0 Generic abstractions related to caching symfony/config v5.4.26 v6.3.2 Helps you find, load, combine, autofill and validate configuration values of any kind symfony/dependency-injection v5.4.26 v6.3.4 Allows you to standardize and centralize the way objects are constructed in your application symfony/deprecation-contracts v3.3.0 v3.3.0 A generic function and convention to trigger deprecation notices symfony/doctrine-bridge v5.4.23 v6.3.4 Provides integration for Doctrine with various Symfony components symfony/dom-crawler v5.4.23 v6.3.4 Eases DOM navigation for HTML and XML documents symfony/error-handler v5.4.26 v6.3.2 Provides tools to manage errors and ease debugging PHP code symfony/event-dispatcher v5.4.26 v6.3.2 Provides tools that allow your application components to communicate with each other by dispatching even... symfony/event-dispatcher-contracts v3.3.0 v3.3.0 Generic abstractions related to dispatching event symfony/filesystem v5.4.25 v6.3.1 Provides basic utilities for the filesystem symfony/finder v5.4.27 v6.3.3 Finds files and directories via an intuitive fluent interface symfony/http-client-contracts v2.5.2 v3.3.0 Generic abstractions related to HTTP clients symfony/http-foundation v5.4.26 v6.3.4 Defines an object-oriented layer for the HTTP specification symfony/http-kernel v5.4.27 v6.3.4 Provides a structured process for converting a Request into a Response symfony/messenger v5.4.23 v6.3.4 Helps applications send and receive messages to/from other applications or via message queues symfony/monolog-bridge v5.4.22 v6.3.1 Provides integration for Monolog with various Symfony components symfony/options-resolver v5.4.21 v6.3.0 Provides an improved replacement for the array_replace PHP function symfony/password-hasher v5.4.21 v6.3.0 Provides password hashing utilities symfony/polyfill-intl-grapheme v1.27.0 v1.28.0 Symfony polyfill for intl's grapheme_* functions symfony/polyfill-intl-icu v1.27.0 v1.28.0 Symfony polyfill for intl's ICU-related data and classes symfony/polyfill-intl-idn v1.27.0 v1.28.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions symfony/polyfill-intl-normalizer v1.27.0 v1.28.0 Symfony polyfill for intl's Normalizer class and related functions symfony/polyfill-mbstring v1.27.0 v1.28.0 Symfony polyfill for the Mbstring extension symfony/polyfill-php72 v1.27.0 v1.28.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions symfony/polyfill-php73 v1.27.0 v1.28.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions symfony/polyfill-php80 v1.27.0 v1.28.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions symfony/polyfill-php81 v1.27.0 v1.28.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions symfony/redis-messenger v5.4.23 v5.4.26 Symfony Redis extension Messenger Bridge symfony/routing v5.4.26 v6.3.3 Maps an HTTP request to a set of configuration variables symfony/security-acl v3.3.2 v3.3.2 Symfony Security Component - ACL (Access Control List) symfony/security-core v5.4.22 v6.3.3 Symfony Security Component - Core Library symfony/security-csrf v5.4.21 v6.3.2 Symfony Security Component - CSRF Library symfony/security-guard v5.4.22 v5.4.27 Symfony Security Component - Guard symfony/security-http v5.4.23 v6.3.4 Symfony Security Component - HTTP Integration symfony/service-contracts v2.5.2 v3.3.0 Generic abstractions related to writing services symfony/translation-contracts v2.5.2 v3.3.0 Generic abstractions related to translation symfony/twig-bridge v5.4.26 v6.3.2 Provides integration for Twig with various Symfony components symfony/var-exporter v6.3.2 v6.3.4 Allows exporting any serializable PHP data structure to plain PHP code thecodingmachine/safe v2.5.0 v2.5.0 PHP core functions that throw exceptions instead of returning FALSE on error theofidry/alice-data-fixtures 1.6.0 1.6.0 Nelmio alice extension to persist the loaded fixtures. theseer/tokenizer 1.2.1 1.2.1 A small library for converting tokenized PHP source code into XML and potentially other formats webmozart/assert 1.11.0 1.11.0 Assertions to validate method input/output with nice error messages. webmozart/path-util 2.3.0 2.3.0 A robust cross-platform utility for normalizing, comparing and modifying file paths. Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead. willdurand/jsonp-callback-validator v1.1.0 v2.0.0 JSONP callback validator. ```

PHP version

$ php -v
PHP 8.2.10 (cli) (built: Sep  2 2023 06:45:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.10, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.10, Copyright (c), by Zend Technologies
    with Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans

Subject

I get an error just after running composer require nucleos/sonata-ckeditor-bundle command. Cannot install the package without an error.

Steps to reproduce

  1. Run composer require nucleos/sonata-ckeditor-bundle command
  2. Run bin/console cache:clear command
  3. See the following error:
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:

  The service "Nucleos\SonataCKEditorBundle\Action\BrowseMediaAction" has a dependency on a non-existent service "sonata.media.admin.media". Did you mean one of these: "sonata.media.cdn.  
  server", "sonata.media.form.type.media", "sonata.media.block.media", "sonata.media.manager.media"?
  1. Create the following configuration file:
# config/packages/sonata_ck_editor.yaml

sonata_ck_editor:
    templates:
        browser: '@SonataCKEditor/browser.html.twig'
        upload: '@SonataCKEditor/upload.html.twig'
    autoconfig: # Can be disabled
        contexts: [ default ]
        browseRoute: admin_app_media_media_ckeditor_browse
        uploadRoute: admin_app_media_media_ckeditor_upload
        fileProvider: sonata.media.provider.file
        imageProvider: sonata.media.provider.image
        imageContext: default
        imageFormat: null
  1. Run bin/console cache:clear command
  2. See the following error:
In ArrayNode.php line 322:

  Unrecognized option "browser" under "sonata_ck_editor.templates". Did you mean "browse"?

Expected results

Install and configure the package without errors

core23 commented 1 year ago

Did you activate the media bundle?

core23 commented 1 year ago

Ah, found a typo in the README:

sonata_ck_editor:
    templates:
        browse: '@SonataCKEditor/browser.html.twig'
kniziol commented 1 year ago

All right, the Unrecognized option "browser" under "sonata_ck_editor.templates". Did you mean "browse"? error is gone. Thank you.

What about the dependency on a non-existent service error that appears when clearing the cache? 👇

$ bin/console cache:clear

In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:

  The service "Nucleos\SonataCKEditorBundle\Action\BrowseMediaAction" has a dependency on a non-existent service "sonata.media.admin.media". Did you mean one of these: "sonata.media.cdn.
  server", "sonata.media.form.type.media", "sonata.media.block.media", "sonata.media.manager.media"?
core23 commented 1 year ago

What about the dependency on a non-existent service error that appears when clearing the cache? 👇

Did you activate the sonata admin bundle?

kniziol commented 1 year ago

Did you activate the sonata admin bundle?

Yes 👇

Sonata\AdminBundle\SonataAdminBundle::class => ['all' => true],

It's active all the time because working on a project that requires it.

core23 commented 1 year ago

Did you activate the media bundle?

What about this?

kniziol commented 1 year ago

Yes. The sonata-project/media-bundle package is installed:

❯ composer why sonata-project/media-bundle
xxxxxxxxxxxx          dev-develop requires  sonata-project/media-bundle (^4.9)   
nucleos/sonata-ckeditor-bundle  1.0.0       requires  sonata-project/media-bundle (^4.1.1) 
sonata-project/formatter-bundle 5.2.0       conflicts sonata-project/media-bundle (<4.2) 
❯ composer show sonata-project/media-bundle|grep vers
versions : * 4.9.0

and is active:

Sonata\MediaBundle\SonataMediaBundle::class => ['all' => true],