Giter Site home page Giter Site logo

Comments (9)

sguionni avatar sguionni commented on September 16, 2024 1

Maybe,
but i'm not using Sf 4 for the moment.
I have to install clean version of Sf 2, 3 and 4 to test all versions.

from kmsfroalaeditorbundle.

SlimenTN avatar SlimenTN commented on September 16, 2024 1

so the solution is to call the service inside services.yaml file and make it public like so:

templating.helper.assets:
        class: Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper
        arguments: ['@assets.packages']
        public: true

from kmsfroalaeditorbundle.

stefanneculai avatar stefanneculai commented on September 16, 2024

@samarhxc I think we should replace the templating.helper.assets with assets.packages here:

$url = $this->m_container->get( "templating.helper.assets" )->getUrl( trim( $basePath, '/' ) . '/' .

What do you think?

from kmsfroalaeditorbundle.

miojamo avatar miojamo commented on September 16, 2024

Hi, any news about it? Thanks,

from kmsfroalaeditorbundle.

sguionni avatar sguionni commented on September 16, 2024

I just tried on fresh Sf4 install and all is working.
But you need to include the following bundles :

"symfony/asset": "^4.0", "symfony/twig-bundle": "^4.0",

In your bundles.php file you have to include Froala after those two bundles.

I continue testing because my profiler is broken.

from kmsfroalaeditorbundle.

lexeo avatar lexeo commented on September 16, 2024

Hi. I've just installed Symfony 4.1 and ran into the same issue.
Found this solution.

Also I got exception: The "kms_froala_editor.media_manager" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead. while trying to upload image.
It can be solved by adding public: true to services.yaml (the easiest way)

from kmsfroalaeditorbundle.

Parashuram-Sram avatar Parashuram-Sram commented on September 16, 2024

Hi,
I have tried fresh installation of Symfony 4.2.3 and it looks working fine. Anyone still facing the issue?

from kmsfroalaeditorbundle.

stefanneculai avatar stefanneculai commented on September 16, 2024

Looks like on S4.2.3 this is no longer happening.

from kmsfroalaeditorbundle.

SlimenTN avatar SlimenTN commented on September 16, 2024

@lexeo can you be specific please ? where exactly should I put public: true ?
this is my services.yaml file:

# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.

# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:

services:
    # default configuration for services in *this* file
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.

    # makes classes in src/ available to be used as services
    # this creates a service per class whose id is the fully-qualified class name
    App\:
        resource: '../src/*'
        exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'

    # controllers are imported separately to make sure services can be injected
    # as action arguments even if you don't extend any base controller class
    App\Controller\:
        resource: '../src/Controller'
        tags: ['controller.service_arguments']

    # add more service definitions when explicit configuration is needed
    # please note that last definitions always *replace* previous ones

from kmsfroalaeditorbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.