Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

Akeneo boostrap.php.cache

  • Todos los blogs
  • Tech Blog
  • Akeneo boostrap.php.cache
  • 5 de marzo de 2021 por
    Administrator

    Force configuration reload in Symfony2

     

    Update: You can’t reload the configuration, but you can set the parameters on-the-fly, see second “Update” paragraph

    It’s not really possible in Symfony2 to do that.

    In production mode, everything (even the configuration) is cached, so you have to clear the cache with

    app/console cache:clear --env=prod --no-debug

    (maybe followed by a app/console cache:warmup --env=prod --no-debug)

    to reload the configuration. In development mode you could experiment with shutdown() followed by a boot() from Symfony\Component\HttpKernel\Kernel or maybe loadClassCache – but all of this is not really that what you want.

    What exactly changes are made to the configuration files? Maybe you should use different files for different environments or consider any other method to get those changes (via a simple Webservice or even a static file read from within a Controller).

    Update:

    I figured out that you can set your container configuration parameter on-the-fly via

    $container->setParameter('parameter', value);

    Have a look at the Symfony2 documentation.

    en Tech Blog
    Install a GitLab CE Omnibus package on ubuntu 14.04 (trusty)

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)