Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/02/2016, 09:10
Avatar de cluster28
cluster28
 
Fecha de Ingreso: enero-2008
Ubicación: Donostia - San Sebastián
Mensajes: 756
Antigüedad: 16 años, 4 meses
Puntos: 32
No puedo extraer las rutas con

Al hacer un:
Código BASH:
Ver original
  1. php bin/console translation:extract en --config=rutas --enable-extractor=jms_i18n_routing

con Symfony 3.0 me sale el siguiente error:

Código BASH:
Ver original
  1. [Symfony\Component\Debug\Exception\ContextErrorException]                                                                                                                                                                                                  
  2.   Catchable Fatal Error: Argument 2 passed to JMS\TranslationBundle\Translation\Extractor\FileExtractor::__construct() must be an instance of Symfony\Component\HttpKernel\Log\LoggerInterface, instance of Symfony\Bridge\Monolog\Logger given, called in....

Y esta es la config:

Código:
jms_i18n_routing:
    default_locale: %locale%
    locales: [es, en]
    strategy: prefix
    
jms_translation:
    configs:
        rutas:
            dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
            output_dir: %kernel.root_dir%/Resources/translations/routes
            ignored_domains: [routes]
            #excluded_names: [*TestCase.php, *Test.php]
            excluded_dirs: [cache, data, logs]
            #extractors: [alias_of_the_extractor]
Creo que no es compatible con Symfony 3.0 ya que ya lo había usado con Symfony 2.7 e iba de lujo.

Gracias.


Cita:
Hoy he probado con 2.8 y va perfecto

Última edición por cluster28; 11/02/2016 a las 02:26 Razón: Pruebas