debug
This commit is contained in:
parent
c167b3a6c3
commit
22dc8b4a5e
|
@ -22,6 +22,9 @@ class StorageExtension extends Extension
|
||||||
$configuration = $this->getConfiguration($configs, $container);
|
$configuration = $this->getConfiguration($configs, $container);
|
||||||
$config = $this->processConfiguration($configuration, $configs);
|
$config = $this->processConfiguration($configuration, $configs);
|
||||||
|
|
||||||
|
$definition = $container->getDefinition('bluesquare.storage');
|
||||||
|
$definition->setArgument('user_config', $config);
|
||||||
|
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,5 @@ services:
|
||||||
class: Bluesquare\StorageBundle\Storage
|
class: Bluesquare\StorageBundle\Storage
|
||||||
autowire: true
|
autowire: true
|
||||||
public: true
|
public: true
|
||||||
|
arguments: ['']
|
||||||
Bluesquare\CryptorBundle\Cryptor: '@bluesquare.storage'
|
Bluesquare\CryptorBundle\Cryptor: '@bluesquare.storage'
|
||||||
|
|
|
@ -10,6 +10,13 @@ use Aws\S3\S3Client;
|
||||||
*/
|
*/
|
||||||
class Storage
|
class Storage
|
||||||
{
|
{
|
||||||
|
private $user_config = [];
|
||||||
|
|
||||||
|
public function __construct($user_config)
|
||||||
|
{
|
||||||
|
$this->user_config = $user_config;
|
||||||
|
}
|
||||||
|
|
||||||
public function get($storage_name)
|
public function get($storage_name)
|
||||||
{
|
{
|
||||||
// TODO: on récupère les infos sur ce storage dans la config utilisateur (config/bluesquare/storage.yaml)
|
// TODO: on récupère les infos sur ce storage dans la config utilisateur (config/bluesquare/storage.yaml)
|
||||||
|
|
Loading…
Reference in New Issue