This is an PHP-translation adapter for Flysystem.
composer require php-translation/flysystem-adapter
If you want to use the Symfony bundle you may activate it in kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Translation\PlatformAdapter\Flysystem\Bridge\Symfony\TranslationAdapterFlysystemBundle(),
);
}
Configure Flysystem adapters like
# /app/config/config.yml
translation_adapter_flysystem:
filesystems:
local:
flysystem_service: 'local.service_id'
path: 'path/to/trans'
foobar:
flysystem_service: 'foobar.service_id'
path: 'path/to/trans'
This will produce two services named php_translation.adapter.flysystem.local
and php_translation.adapter.flysystem.foobar
that could be used in the configuration for
the Translation Bundle.
Read our documentation at http://php-translation.readthedocs.io.
Do you want to make a change? Pull requests are welcome.