[DependencyInjection] removed the built-in extensions
This commit is contained in:
parent
8ff8464420
commit
ec2a3bc417
@ -1,124 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Symfony\Components\DependencyInjection\Loader\Extension;
|
|
||||||
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
|
|
||||||
use Symfony\Components\DependencyInjection\BuilderConfiguration;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of the symfony framework.
|
|
||||||
*
|
|
||||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*
|
|
||||||
* This source file is subject to the MIT license that is bundled
|
|
||||||
* with this source code in the file LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* DoctrineExtension is an extension for the Doctrine DBAL and ORM library.
|
|
||||||
*
|
|
||||||
* @package symfony
|
|
||||||
* @subpackage dependency_injection
|
|
||||||
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*/
|
|
||||||
class DoctrineExtension extends LoaderExtension
|
|
||||||
{
|
|
||||||
protected $resources = array(
|
|
||||||
'dbal' => 'dbal-1.0.xml',
|
|
||||||
'orm' => 'orm-1.0.xml',
|
|
||||||
);
|
|
||||||
|
|
||||||
protected $alias;
|
|
||||||
|
|
||||||
public function setAlias($alias)
|
|
||||||
{
|
|
||||||
$this->alias = $alias;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the DBAL configuration.
|
|
||||||
*
|
|
||||||
* Usage example:
|
|
||||||
*
|
|
||||||
* <doctrine:dbal dbname="sfweb" username="root" />
|
|
||||||
*
|
|
||||||
* @param array $config A configuration array
|
|
||||||
*
|
|
||||||
* @return BuilderConfiguration A BuilderConfiguration instance
|
|
||||||
*/
|
|
||||||
public function dbalLoad($config)
|
|
||||||
{
|
|
||||||
$configuration = new BuilderConfiguration();
|
|
||||||
|
|
||||||
$loader = new XmlFileLoader(__DIR__.'/xml/doctrine');
|
|
||||||
$configuration->merge($loader->load($this->resources['dbal']));
|
|
||||||
|
|
||||||
foreach (array('dbname', 'host', 'username', 'password', 'path', 'port') as $key)
|
|
||||||
{
|
|
||||||
if (isset($config[$key]))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('doctrine.dbal.'.$key, $config[$key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($config['options']))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('doctrine.dbal.driver.options', $config['options']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($config['driver']))
|
|
||||||
{
|
|
||||||
$class = $config['driver'];
|
|
||||||
if (in_array($class, array('OCI8', 'PDOMsSql', 'PDOMySql', 'PDOOracle', 'PDOPgSql', 'PDOSqlite')))
|
|
||||||
{
|
|
||||||
$class = 'Doctrine\\DBAL\\Driver\\'.$class.'\\Driver';
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->setParameter('doctrine.dbal.driver.class', $class);
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->setAlias('connection', null !== $this->alias ? $this->alias : 'doctrine.dbal.connection');
|
|
||||||
|
|
||||||
return $configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the Doctrine ORM configuration.
|
|
||||||
*
|
|
||||||
* @param array $config A configuration array
|
|
||||||
*
|
|
||||||
* @return BuilderConfiguration A BuilderConfiguration instance
|
|
||||||
*/
|
|
||||||
public function ormLoad($config)
|
|
||||||
{
|
|
||||||
$configuration = new BuilderConfiguration();
|
|
||||||
|
|
||||||
$loader = new XmlFileLoader(__DIR__.'/xml/doctrine');
|
|
||||||
$configuration->merge($loader->load($this->resources['orm']));
|
|
||||||
|
|
||||||
return $configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the namespace to be used for this extension (XML namespace).
|
|
||||||
*
|
|
||||||
* @return string The XML namespace
|
|
||||||
*/
|
|
||||||
public function getNamespace()
|
|
||||||
{
|
|
||||||
return 'http://www.symfony-project.org/schema/dic/doctrine';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the recommanded alias to use in XML.
|
|
||||||
*
|
|
||||||
* This alias is also the mandatory prefix to use when using YAML.
|
|
||||||
*
|
|
||||||
* @return string The alias
|
|
||||||
*/
|
|
||||||
public function getAlias()
|
|
||||||
{
|
|
||||||
return 'doctrine';
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,128 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Symfony\Components\DependencyInjection\Loader\Extension;
|
|
||||||
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
|
|
||||||
use Symfony\Components\DependencyInjection\BuilderConfiguration;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of the symfony framework.
|
|
||||||
*
|
|
||||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*
|
|
||||||
* This source file is subject to the MIT license that is bundled
|
|
||||||
* with this source code in the file LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* SwiftMailerExtension is an extension for the Swift Mailer library.
|
|
||||||
*
|
|
||||||
* @package symfony
|
|
||||||
* @subpackage dependency_injection
|
|
||||||
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*/
|
|
||||||
class SwiftMailerExtension extends LoaderExtension
|
|
||||||
{
|
|
||||||
protected $resources = array(
|
|
||||||
'mailer' => 'swiftmailer-1.0.xml',
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the Swift Mailer configuration.
|
|
||||||
*
|
|
||||||
* Usage example:
|
|
||||||
*
|
|
||||||
* <swift:mailer transport="gmail" delivery_strategy="spool">
|
|
||||||
* <swift:username>fabien</swift:username>
|
|
||||||
* <swift:password>xxxxx</swift:password>
|
|
||||||
* <swift:spool path="/path/to/spool/" />
|
|
||||||
* </swift:mailer>
|
|
||||||
*
|
|
||||||
* @param array $config A configuration array
|
|
||||||
*
|
|
||||||
* @return BuilderConfiguration A BuilderConfiguration instance
|
|
||||||
*/
|
|
||||||
public function mailerLoad($config)
|
|
||||||
{
|
|
||||||
$configuration = new BuilderConfiguration();
|
|
||||||
|
|
||||||
$loader = new XmlFileLoader(__DIR__.'/xml/swiftmailer');
|
|
||||||
$configuration->merge($loader->load($this->resources['mailer']));
|
|
||||||
|
|
||||||
if (null === $config['transport'])
|
|
||||||
{
|
|
||||||
$config['transport'] = 'null';
|
|
||||||
}
|
|
||||||
elseif (!isset($config['transport']))
|
|
||||||
{
|
|
||||||
$config['transport'] = 'smtp';
|
|
||||||
}
|
|
||||||
elseif ('gmail' === $config['transport'])
|
|
||||||
{
|
|
||||||
$config['encryption'] = 'ssl';
|
|
||||||
$config['auth_mode'] = 'login';
|
|
||||||
$config['host'] = 'smtp.gmail.com';
|
|
||||||
$config['transport'] = 'smtp';
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->setAlias('swiftmailer.transport', 'swiftmailer.transport.'.$config['transport']);
|
|
||||||
|
|
||||||
if (isset($config['encryption']) && 'ssl' === $config['encryption'] && !isset($config['port']))
|
|
||||||
{
|
|
||||||
$config['port'] = 465;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (array('encryption', 'port', 'host', 'username', 'password', 'auth_mode') as $key)
|
|
||||||
{
|
|
||||||
if (isset($config[$key]))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('swiftmailer.transport.'.$config['transport'].'.'.$key, $config[$key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// spool?
|
|
||||||
if (isset($config['spool']))
|
|
||||||
{
|
|
||||||
$type = isset($config['type']) ? $config['type'] : 'file';
|
|
||||||
|
|
||||||
$configuration->setAlias('swiftmailer.transport.real', 'swiftmailer.transport.'.$config['transport']);
|
|
||||||
$configuration->setAlias('swiftmailer.transport', 'swiftmailer.transport.spool');
|
|
||||||
$configuration->setAlias('swiftmailer.spool', 'swiftmailer.spool.'.$type);
|
|
||||||
|
|
||||||
foreach (array('path') as $key)
|
|
||||||
{
|
|
||||||
if (isset($config['spool'][$key]))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('swiftmailer.spool.'.$type.'.'.$key, $config['spool'][$key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->setAlias('mailer', 'swiftmailer.mailer');
|
|
||||||
|
|
||||||
return $configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the namespace to be used for this extension (XML namespace).
|
|
||||||
*
|
|
||||||
* @return string The XML namespace
|
|
||||||
*/
|
|
||||||
public function getNamespace()
|
|
||||||
{
|
|
||||||
return 'http://www.symfony-project.org/schema/dic/swiftmailer';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the recommanded alias to use in XML.
|
|
||||||
*
|
|
||||||
* This alias is also the mandatory prefix to use when using YAML.
|
|
||||||
*
|
|
||||||
* @return string The alias
|
|
||||||
*/
|
|
||||||
public function getAlias()
|
|
||||||
{
|
|
||||||
return 'swift';
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,155 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Symfony\Components\DependencyInjection\Loader\Extension;
|
|
||||||
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
|
|
||||||
use Symfony\Components\DependencyInjection\BuilderConfiguration;
|
|
||||||
use Symfony\Components\DependencyInjection\Reference;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of the symfony framework.
|
|
||||||
*
|
|
||||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*
|
|
||||||
* This source file is subject to the MIT license that is bundled
|
|
||||||
* with this source code in the file LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* SymfonyTemplatingExtension is an extension for the Symfony Templating Component.
|
|
||||||
*
|
|
||||||
* @package symfony
|
|
||||||
* @subpackage dependency_injection
|
|
||||||
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*/
|
|
||||||
class SymfonyTemplatingExtension extends LoaderExtension
|
|
||||||
{
|
|
||||||
protected $resources = array(
|
|
||||||
'templating' => 'templating-1.0.xml',
|
|
||||||
);
|
|
||||||
protected $defaultHelpers = array();
|
|
||||||
protected $alias;
|
|
||||||
|
|
||||||
public function setAlias($alias)
|
|
||||||
{
|
|
||||||
$this->alias = $alias;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDefaultHelpers(array $defaultHelpers)
|
|
||||||
{
|
|
||||||
$this->defaultHelpers = $defaultHelpers;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the templating configuration.
|
|
||||||
*
|
|
||||||
* Usage example:
|
|
||||||
*
|
|
||||||
* <symfony:templating path="/path/to/templates" cache="/path/to/cache">
|
|
||||||
* <symfony:loader>symfony.templating.loader.filesystem</symfony:loader>
|
|
||||||
* <symfony:helpers>
|
|
||||||
* symfony.templating.helper.javascripts
|
|
||||||
* symfony.templating.helper.stylesheets
|
|
||||||
* </symfony:helpers>
|
|
||||||
* </symfony:templating>
|
|
||||||
*
|
|
||||||
* @param array $config A configuration array
|
|
||||||
*
|
|
||||||
* @return BuilderConfiguration A BuilderConfiguration instance
|
|
||||||
*/
|
|
||||||
public function templatingLoad($config)
|
|
||||||
{
|
|
||||||
$configuration = new BuilderConfiguration();
|
|
||||||
|
|
||||||
$loader = new XmlFileLoader(__DIR__.'/xml/symfony');
|
|
||||||
$configuration->merge($loader->load($this->resources['templating']));
|
|
||||||
|
|
||||||
// path for the filesystem loader
|
|
||||||
if (isset($config['path']))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('symfony.templating.loader.filesystem.path', $config['path']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// loaders
|
|
||||||
if (isset($config['loader']))
|
|
||||||
{
|
|
||||||
$loaders = array();
|
|
||||||
$ids = is_array($config['loader']) ? $config['loader'] : array($config['loader']);
|
|
||||||
foreach ($ids as $id)
|
|
||||||
{
|
|
||||||
$loaders[] = new Reference($id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$loaders = array(
|
|
||||||
new Reference('symfony.templating.loader.filesystem'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (1 === count($loaders))
|
|
||||||
{
|
|
||||||
$configuration->setAlias('symfony.templating.loader', (string) $loaders[0]);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$configuration->getDefinition('symfony.templating.loader.chain')->addArgument($loaders);
|
|
||||||
$configuration->setAlias('symfony.templating.loader', 'symfony.templating.loader.chain');
|
|
||||||
}
|
|
||||||
|
|
||||||
// helpers
|
|
||||||
if (array_key_exists('helpers', $config))
|
|
||||||
{
|
|
||||||
$helpers = array();
|
|
||||||
foreach (explode("\n", $config['helpers']) as $helper)
|
|
||||||
{
|
|
||||||
if ($helper)
|
|
||||||
{
|
|
||||||
$helpers[] = new Reference(trim($helper));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$helpers = $this->defaultHelpers;
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->getDefinition('symfony.templating.helperset')->addArgument($helpers);
|
|
||||||
|
|
||||||
// cache?
|
|
||||||
if (isset($config['cache']))
|
|
||||||
{
|
|
||||||
// wrap the loader with some cache
|
|
||||||
$configuration->setDefinition('symfony.templating.loader.wrapped', $configuration->findDefinition('symfony.templating.loader'));
|
|
||||||
$configuration->setDefinition('symfony.templating.loader', $configuration->getDefinition('symfony.templating.loader.cache'));
|
|
||||||
$configuration->setParameter('symfony.templating.loader.cache.path', $config['cache']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->setAlias('templating', null !== $this->alias ? $this->alias : 'symfony.templating.engine');
|
|
||||||
|
|
||||||
return $configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the namespace to be used for this extension (XML namespace).
|
|
||||||
*
|
|
||||||
* @return string The XML namespace
|
|
||||||
*/
|
|
||||||
public function getNamespace()
|
|
||||||
{
|
|
||||||
return 'http://www.symfony-project.org/schema/dic/symfony';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the recommanded alias to use in XML.
|
|
||||||
*
|
|
||||||
* This alias is also the mandatory prefix to use when using YAML.
|
|
||||||
*
|
|
||||||
* @return string The alias
|
|
||||||
*/
|
|
||||||
public function getAlias()
|
|
||||||
{
|
|
||||||
return 'symfony';
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,141 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Symfony\Components\DependencyInjection\Loader\Extension;
|
|
||||||
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
|
|
||||||
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
|
|
||||||
use Symfony\Components\DependencyInjection\BuilderConfiguration;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of the symfony framework.
|
|
||||||
*
|
|
||||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*
|
|
||||||
* This source file is subject to the MIT license that is bundled
|
|
||||||
* with this source code in the file LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ZendExtension is an extension for the Zend Framework libraries.
|
|
||||||
*
|
|
||||||
* @package symfony
|
|
||||||
* @subpackage dependency_injection
|
|
||||||
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
||||||
*/
|
|
||||||
class ZendExtension extends LoaderExtension
|
|
||||||
{
|
|
||||||
protected $resources = array(
|
|
||||||
'logger' => 'logger-1.0.xml',
|
|
||||||
'mail' => 'mail-1.0.xml',
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the logger configuration.
|
|
||||||
*
|
|
||||||
* Usage example:
|
|
||||||
*
|
|
||||||
* <zend:logger priority="info" path="/path/to/some.log" />
|
|
||||||
*
|
|
||||||
* @param array $config A configuration array
|
|
||||||
*
|
|
||||||
* @return BuilderConfiguration A BuilderConfiguration instance
|
|
||||||
*/
|
|
||||||
public function loggerLoad($config)
|
|
||||||
{
|
|
||||||
$configuration = new BuilderConfiguration();
|
|
||||||
|
|
||||||
$loader = new XmlFileLoader(__DIR__.'/xml/zend');
|
|
||||||
$configuration->merge($loader->load($this->resources['logger']));
|
|
||||||
|
|
||||||
if (isset($config['priority']))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('zend.logger.priority', is_int($config['priority']) ? $config['priority'] : constant('\Zend_Log::'.strtoupper($config['priority'])));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($config['path']))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('zend.logger.path', $config['path']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->setAlias('logger', 'zend.logger');
|
|
||||||
|
|
||||||
return $configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the mail configuration.
|
|
||||||
*
|
|
||||||
* Usage example:
|
|
||||||
*
|
|
||||||
* <zend:mail transport="gmail">
|
|
||||||
* <zend:username>fabien</zend:username>
|
|
||||||
* <zend:password>xxxxxx</zend:password>
|
|
||||||
* </zend:mail>
|
|
||||||
*
|
|
||||||
* @param array $config A configuration array
|
|
||||||
*
|
|
||||||
* @return BuilderConfiguration A BuilderConfiguration instance
|
|
||||||
*/
|
|
||||||
public function mailLoad($config)
|
|
||||||
{
|
|
||||||
$configuration = new BuilderConfiguration();
|
|
||||||
|
|
||||||
$loader = new XmlFileLoader(__DIR__.'/xml/zend');
|
|
||||||
$configuration->merge($loader->load($this->resources['logger']));
|
|
||||||
|
|
||||||
if (isset($config['transport']))
|
|
||||||
{
|
|
||||||
if ('gmail' === $config['transport'])
|
|
||||||
{
|
|
||||||
$config['ssl'] = 'ssl';
|
|
||||||
$config['auth'] = 'login';
|
|
||||||
$config['host'] = 'smtp.gmail.com';
|
|
||||||
|
|
||||||
$configuration->setAlias('zend.mail.transport', 'zend.mail.transport.smtp.ssl');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (isset($config['ssl']) && $config['ssl'])
|
|
||||||
{
|
|
||||||
$config['transport'] = $config['transport'].'.ssl';
|
|
||||||
}
|
|
||||||
$configuration->setAlias('zend.mail.transport', 'zend.mail.transport.'.$config['transport']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($config['ssl']))
|
|
||||||
{
|
|
||||||
if (true === $config['ssl'] || 'ssl' === $config['ssl'])
|
|
||||||
{
|
|
||||||
$config['ssl'] = 'ssl';
|
|
||||||
if (!isset($config['port']))
|
|
||||||
{
|
|
||||||
$config['port'] = 465;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$configuration->setParameter('zend.mail.smtp.ssl', $config['ssl']);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (array('port', 'host', 'username', 'password', 'auth') as $key)
|
|
||||||
{
|
|
||||||
if (isset($config[$key]))
|
|
||||||
{
|
|
||||||
$configuration->setParameter('zend.mail.smtp.'.$key, $config[$key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$configuration->setAlias('mail', 'zend.mail');
|
|
||||||
|
|
||||||
return $configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getNamespace()
|
|
||||||
{
|
|
||||||
return 'http://www.symfony-project.org/schema/dic/zend';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAlias()
|
|
||||||
{
|
|
||||||
return 'zend';
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,48 +0,0 @@
|
|||||||
<?xml version="1.0" ?>
|
|
||||||
|
|
||||||
<container xmlns="http://www.symfony-project.org/schema/dic/services"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
|
|
||||||
|
|
||||||
<parameters>
|
|
||||||
<parameter key="doctrine.dbal.dbname">null</parameter>
|
|
||||||
<parameter key="doctrine.dbal.user">root</parameter>
|
|
||||||
<parameter key="doctrine.dbal.password"></parameter>
|
|
||||||
<parameter key="doctrine.dbal.host">localhost</parameter>
|
|
||||||
<parameter key="doctrine.dbal.port">null</parameter>
|
|
||||||
<parameter key="doctrine.dbal.path">null</parameter>
|
|
||||||
<parameter key="doctrine.dbal.driver.class">Doctrine\DBAL\Driver\PDOMySql\Driver</parameter>
|
|
||||||
<parameter key="doctrine.dbal.driver.options" type="collection" />
|
|
||||||
<parameter key="doctrine.dbal.wrapper.class">Doctrine\DBAL\Connection</parameter>
|
|
||||||
<parameter key="doctrine.dbal.configuration.class">Doctrine\DBAL\Configuration</parameter>
|
|
||||||
<parameter key="doctrine.dbal.event_manager.class">Doctrine\Common\EventManager</parameter>
|
|
||||||
</parameters>
|
|
||||||
|
|
||||||
<services>
|
|
||||||
<service id="doctrine.dbal.connection" class="Doctrine\DBAL\DriverManager" constructor="getConnection">
|
|
||||||
<argument type="collection">
|
|
||||||
<argument key="dbname">%doctrine.dbal.dbname%</argument>
|
|
||||||
<argument key="user">%doctrine.dbal.user%</argument>
|
|
||||||
<argument key="password">%doctrine.dbal.password%</argument>
|
|
||||||
<argument key="host">%doctrine.dbal.host%</argument>
|
|
||||||
<argument key="port">%doctrine.dbal.port%</argument>
|
|
||||||
<argument key="path">%doctrine.dbal.path%</argument>
|
|
||||||
<argument key="driverClass">%doctrine.dbal.driver.class%</argument>
|
|
||||||
<argument key="driverOptions">%doctrine.dbal.driver.options%</argument>
|
|
||||||
<!--
|
|
||||||
<argument key="wrapperClass">%doctrine.dbal.wrapper.class%</argument>
|
|
||||||
//-->
|
|
||||||
</argument>
|
|
||||||
<argument type="service" id="doctrine.dbal.configuration" />
|
|
||||||
<argument type="service" id="doctrine.dbal.event_manager" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="doctrine.dbal.configuration" class="%doctrine.dbal.configuration.class%">
|
|
||||||
<call method="setSqlLogger"><argument type="service" id="doctrine.dbal.logger" on-invalid="ignore" /></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="doctrine.dbal.logger.debug" class="Doctrine\DBAL\Logging\DebugStack" />
|
|
||||||
|
|
||||||
<service id="doctrine.dbal.event_manager" class="%doctrine.dbal.event_manager.class%" />
|
|
||||||
</services>
|
|
||||||
</container>
|
|
@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" ?>
|
|
||||||
|
|
||||||
<container xmlns="http://www.symfony-project.org/schema/dic/services"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
|
|
||||||
|
|
||||||
<services>
|
|
||||||
<service id="doctrine.orm.manager" class="Doctrine\ORM\EntityManager" constructor="create">
|
|
||||||
<argument type="service" id="connection" />
|
|
||||||
<argument type="service" id="doctrine.orm.configuration" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="doctrine.orm.configuration" class="Doctrine\ORM\Configuration">
|
|
||||||
<!--
|
|
||||||
<call method="setMetadataCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
|
|
||||||
<call method="setQueryCacheImpl"><argument type="service" id="doctrine.orm.cache" /></call>
|
|
||||||
//-->
|
|
||||||
<call method="setProxyDir"><argument>%kernel.cache_dir%/doctrine/Proxies</argument></call>
|
|
||||||
<call method="setProxyNamespace"><argument>Proxies</argument></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="doctrine.orm.cache" class="Doctrine\Common\Cache\ApcCache" />
|
|
||||||
</services>
|
|
||||||
</container>
|
|
@ -1,91 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
|
|
||||||
<container xmlns="http://www.symfony-project.org/schema/dic/services"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
|
|
||||||
|
|
||||||
<parameters>
|
|
||||||
<parameter key="swiftmailer.class">Swift_Mailer</parameter>
|
|
||||||
|
|
||||||
<parameter key="swiftmailer.transport.smtp.class">Swift_Transport_EsmtpTransport</parameter>
|
|
||||||
<parameter key="swiftmailer.transport.sendmail.class">Swift_Transport_SendmailTransport</parameter>
|
|
||||||
<parameter key="swiftmailer.transport.mail.class">Swift_Transport_MailTransport</parameter>
|
|
||||||
|
|
||||||
<parameter key="swiftmailer.transport.smtp.host">localhost</parameter>
|
|
||||||
<parameter key="swiftmailer.transport.smtp.port">25</parameter>
|
|
||||||
<parameter key="swiftmailer.transport.smtp.encryption">null</parameter>
|
|
||||||
<parameter key="swiftmailer.transport.smtp.username">null</parameter>
|
|
||||||
<parameter key="swiftmailer.transport.smtp.password">null</parameter>
|
|
||||||
<parameter key="swiftmailer.transport.smtp.auth_mode">null</parameter>
|
|
||||||
|
|
||||||
<parameter key="swiftmailer.spool.file.class">Swift_FileSpool</parameter>
|
|
||||||
</parameters>
|
|
||||||
|
|
||||||
<services>
|
|
||||||
<service id="swiftmailer.mailer" class="%swiftmailer.class%">
|
|
||||||
<argument type="service" id="swiftmailer.transport" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.smtp" class="%swiftmailer.transport.smtp.class%">
|
|
||||||
<argument type="service" id="swiftmailer.transport.buffer" />
|
|
||||||
<argument type="collection">
|
|
||||||
<argument type="service" id="swiftmailer.transport.authhandler" />
|
|
||||||
</argument>
|
|
||||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
|
||||||
|
|
||||||
<call method="setHost"><argument>%swiftmailer.transport.smtp.host%</argument></call>
|
|
||||||
<call method="setPort"><argument>%swiftmailer.transport.smtp.port%</argument></call>
|
|
||||||
<call method="setEncryption"><argument>%swiftmailer.transport.smtp.encryption%</argument></call>
|
|
||||||
<call method="setUsername"><argument>%swiftmailer.transport.smtp.username%</argument></call>
|
|
||||||
<call method="setPassword"><argument>%swiftmailer.transport.smtp.password%</argument></call>
|
|
||||||
<call method="setAuthMode"><argument>%swiftmailer.transport.smtp.auth_mode%</argument></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.sendmail" class="%swiftmailer.transport.sendmail.class%">
|
|
||||||
<argument type="service" id="swiftmailer.transport.buffer" />
|
|
||||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.mail" class="%swiftmailer.transport.mail.class%">
|
|
||||||
<argument type="service" id="swiftmailer.transport.mailinvoker" />
|
|
||||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.failover" class="Swift_Transport_FailoverTransport" />
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.mailinvoker" class="Swift_Transport_SimpleMailInvoker" />
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.buffer" class="Swift_Transport_StreamBuffer">
|
|
||||||
<argument type="service" id="swiftmailer.transport.replacementfactory" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.authhandler" class="Swift_Transport_Esmtp_AuthHandler">
|
|
||||||
<argument type="collection">
|
|
||||||
<argument type="service"><service class="Swift_Transport_Esmtp_Auth_CramMd5Authenticator" /></argument>
|
|
||||||
<argument type="service"><service class="Swift_Transport_Esmtp_Auth_LoginAuthenticator" /></argument>
|
|
||||||
<argument type="service"><service class="Swift_Transport_Esmtp_Auth_PlainAuthenticator" /></argument>
|
|
||||||
</argument>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.eventdispatcher" class="Swift_Events_SimpleEventDispatcher" />
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.replacementfactory" class="Swift_StreamFilters_StringReplacementFilterFactory" />
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.spool" class="Swift_Transport_SpoolTransport">
|
|
||||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
|
||||||
<argument type="service" id="swiftmailer.spool" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport.null" class="Swift_Transport_NullTransport">
|
|
||||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.spool.file" class="%swiftmailer.spool.file.class%">
|
|
||||||
<argument>%swiftmailer.spool.file.path%</argument>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="swiftmailer.transport" alias="swiftmailer.transport.smtp" />
|
|
||||||
|
|
||||||
<service id="swiftmailer.spool" alias="swiftmailer.spool.file" />
|
|
||||||
</services>
|
|
||||||
</container>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" ?>
|
|
||||||
|
|
||||||
<container xmlns="http://www.symfony-project.org/schema/dic/services"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
|
|
||||||
|
|
||||||
<parameters>
|
|
||||||
<parameter key="symfony.templating.engine.class">Symfony\Components\Templating\Engine</parameter>
|
|
||||||
<parameter key="symfony.templating.helperset.class">Symfony\Components\Templating\Helper\HelperSet</parameter>
|
|
||||||
<parameter key="symfony.templating.loader.filesystem.class">Symfony\Components\Templating\Loader\FilesystemLoader</parameter>
|
|
||||||
<parameter key="symfony.templating.loader.cache.class">Symfony\Components\Templating\Loader\CacheLoader</parameter>
|
|
||||||
<parameter key="symfony.templating.loader.Chain.class">Symfony\Components\Templating\Loader\ChainLoader</parameter>
|
|
||||||
<parameter key="symfony.templating.helper.javascripts.class">Symfony\Components\Templating\Helper\JavascriptsHelper</parameter>
|
|
||||||
<parameter key="symfony.templating.helper.stylesheets.class">Symfony\Components\Templating\Helper\StylesheetsHelper</parameter>
|
|
||||||
</parameters>
|
|
||||||
|
|
||||||
<services>
|
|
||||||
<service id="symfony.templating.engine" class="%symfony.templating.engine.class%">
|
|
||||||
<argument type="service" id="symfony.templating.loader" />
|
|
||||||
<argument type="collection"></argument>
|
|
||||||
<argument type="service" id="symfony.templating.helperset" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="symfony.templating.helperset" class="%symfony.templating.helperset.class%" />
|
|
||||||
|
|
||||||
<service id="symfony.templating.loader.filesystem" class="%symfony.templating.loader.filesystem.class%">
|
|
||||||
<argument>%symfony.templating.loader.filesystem.path%</argument>
|
|
||||||
<call method="setDebugger"><argument type="service" id="symfony.templating.debugger" on-invalid="ignore" /></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="symfony.templating.loader.cache" class="%symfony.templating.loader.cache.class%">
|
|
||||||
<argument type="service" id="symfony.templating.loader.wrapped" />
|
|
||||||
<argument>%symfony.templating.loader.cache.path%</argument>
|
|
||||||
<call method="setDebugger"><argument type="service" id="symfony.templating.debugger" on-invalid="ignore" /></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="symfony.templating.loader.chain" class="%symfony.templating.loader.chain.class%">
|
|
||||||
<call method="setDebugger"><argument type="service" id="symfony.templating.debugger" on-invalid="ignore" /></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="symfony.templating.helper.javascripts" class="%symfony.templating.helper.javascripts.class%" />
|
|
||||||
<service id="symfony.templating.helper.stylesheets" class="%symfony.templating.helper.stylesheets.class%" />
|
|
||||||
|
|
||||||
<service id="symfony.templating.loader" alias="symfony.templating.loader.filesystem" />
|
|
||||||
</services>
|
|
||||||
</container>
|
|
@ -1,26 +0,0 @@
|
|||||||
<?xml version="1.0" ?>
|
|
||||||
|
|
||||||
<container xmlns="http://www.symfony-project.org/schema/dic/services"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
|
|
||||||
|
|
||||||
<parameters>
|
|
||||||
<parameter key="zend.logger.class">Zend_Log</parameter>
|
|
||||||
<parameter key="zend.logger.priority" type="constant">Zend_Log::CRIT</parameter>
|
|
||||||
</parameters>
|
|
||||||
|
|
||||||
<services>
|
|
||||||
<service id="zend.logger" class="%zend.logger.class%">
|
|
||||||
<call method="addWriter"><argument type="service" id="zend.logger.writer.filesystem" /></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="zend.logger.writer.filesystem" class="Zend_Log_Writer_Stream">
|
|
||||||
<argument>%zend.logger.path%</argument>
|
|
||||||
<call method="addFilter"><argument type="service" id="zend.logger.filter" /></call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="zend.logger.filter" class="Zend_Log_Filter_Priority">
|
|
||||||
<argument>%zend.logger.priority%</argument>
|
|
||||||
</service>
|
|
||||||
</services>
|
|
||||||
</container>
|
|
@ -1,48 +0,0 @@
|
|||||||
<?xml version="1.0" ?>
|
|
||||||
|
|
||||||
<container xmlns="http://www.symfony-project.org/schema/dic/services"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
|
|
||||||
|
|
||||||
<parameters>
|
|
||||||
<parameter key="zend.mail.class">Zend_Mail</parameter>
|
|
||||||
<parameter key="zend.mail.smtp.class">Zend_Mail_Transport_Smtp</parameter>
|
|
||||||
<parameter key="zend.mail.smtp.host">localhost</parameter>
|
|
||||||
<parameter key="zend.mail.smtp.username">null</parameter>
|
|
||||||
<parameter key="zend.mail.smtp.password">null</parameter>
|
|
||||||
<parameter key="zend.mail.smtp.auth">null</parameter>
|
|
||||||
<parameter key="zend.mail.smtp.ssl">null</parameter>
|
|
||||||
<parameter key="zend.mail.smtp.port">25</parameter>
|
|
||||||
</parameters>
|
|
||||||
|
|
||||||
<services>
|
|
||||||
<service id="zend.mail" class="%zend.mail.class%" shared="false">
|
|
||||||
<call method="setDefaultTransport">
|
|
||||||
<argument type="service" id="zend.mail.transport" />
|
|
||||||
</call>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="zend.mail.transport.smtp" class="%zend.mail.smtp.class%">
|
|
||||||
<argument>%zend.mail.smtp.host%</argument>
|
|
||||||
<argument type="collection">
|
|
||||||
<argument key="auth">%zend.mail.smtp.auth%</argument>
|
|
||||||
<argument key="username">%zend.mail.smtp.username%</argument>
|
|
||||||
<argument key="password">%zend.mail.smtp.password%</argument>
|
|
||||||
<argument key="port">%zend.mail.smtp.port%</argument>
|
|
||||||
</argument>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="zend.mail.transport.smtp.ssl" class="%zend.mail.smtp.class%">
|
|
||||||
<argument>%zend.mail.smtp.host%</argument>
|
|
||||||
<argument type="collection">
|
|
||||||
<argument key="auth">%zend.mail.smtp.auth%</argument>
|
|
||||||
<argument key="username">%zend.mail.smtp.username%</argument>
|
|
||||||
<argument key="password">%zend.mail.smtp.password%</argument>
|
|
||||||
<argument key="ssl">%zend.mail.smtp.ssl%</argument>
|
|
||||||
<argument key="port">%zend.mail.smtp.port%</argument>
|
|
||||||
</argument>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="zend.mail.transport" alias="zend.mail.transport.smtp" />
|
|
||||||
</services>
|
|
||||||
</container>
|
|
@ -1,20 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
|
|
||||||
<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/doctrine"
|
|
||||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
||||||
targetNamespace="http://www.symfony-project.org/schema/dic/doctrine"
|
|
||||||
elementFormDefault="qualified">
|
|
||||||
|
|
||||||
<xsd:element name="dbal" type="dbal" />
|
|
||||||
|
|
||||||
<xsd:complexType name="dbal">
|
|
||||||
<xsd:attribute name="dbname" type="xsd:string" />
|
|
||||||
<xsd:attribute name="host" type="xsd:string" />
|
|
||||||
<xsd:attribute name="port" type="xsd:integer" />
|
|
||||||
<xsd:attribute name="username" type="xsd:string" />
|
|
||||||
<xsd:attribute name="password" type="xsd:string" />
|
|
||||||
<xsd:attribute name="driver" type="xsd:string" />
|
|
||||||
<xsd:attribute name="options" type="xsd:string" />
|
|
||||||
<xsd:attribute name="path" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:schema>
|
|
@ -1,55 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
|
|
||||||
<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/swiftmailer"
|
|
||||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
||||||
targetNamespace="http://www.symfony-project.org/schema/dic/swiftmailer"
|
|
||||||
elementFormDefault="qualified">
|
|
||||||
|
|
||||||
<xsd:element name="mailer" type="mailer" />
|
|
||||||
|
|
||||||
<xsd:complexType name="mailer">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="username" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="password" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="host" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="port" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="encryption" type="encryption" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="auth_mode" type="auth_mode" minOccurs="0" maxOccurs="1" />
|
|
||||||
|
|
||||||
<xsd:element name="spool" type="spool" minOccurs="0" maxOccurs="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
|
|
||||||
<xsd:attribute name="transport" type="xsd:string" />
|
|
||||||
<xsd:attribute name="delivery_strategy" type="delivery_strategy" />
|
|
||||||
<xsd:attribute name="username" type="xsd:string" />
|
|
||||||
<xsd:attribute name="password" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
|
|
||||||
<xsd:complexType name="spool">
|
|
||||||
<xsd:attribute name="path" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
|
|
||||||
<xsd:simpleType name="encryption">
|
|
||||||
<xsd:restriction base="xsd:string">
|
|
||||||
<xsd:enumeration value="tls" />
|
|
||||||
<xsd:enumeration value="ssl" />
|
|
||||||
</xsd:restriction>
|
|
||||||
</xsd:simpleType>
|
|
||||||
|
|
||||||
<xsd:simpleType name="auth_mode">
|
|
||||||
<xsd:restriction base="xsd:string">
|
|
||||||
<xsd:enumeration value="plain" />
|
|
||||||
<xsd:enumeration value="login" />
|
|
||||||
<xsd:enumeration value="cram-md5" />
|
|
||||||
</xsd:restriction>
|
|
||||||
</xsd:simpleType>
|
|
||||||
|
|
||||||
<xsd:simpleType name="delivery_strategy">
|
|
||||||
<xsd:restriction base="xsd:string">
|
|
||||||
<xsd:enumeration value="realtime" />
|
|
||||||
<xsd:enumeration value="spool" />
|
|
||||||
<xsd:enumeration value="single_address" />
|
|
||||||
<xsd:enumeration value="none" />
|
|
||||||
</xsd:restriction>
|
|
||||||
</xsd:simpleType>
|
|
||||||
</xsd:schema>
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
|
|
||||||
<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/symfony"
|
|
||||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
||||||
targetNamespace="http://www.symfony-project.org/schema/dic/symfony"
|
|
||||||
elementFormDefault="qualified">
|
|
||||||
|
|
||||||
<xsd:element name="templating" type="templating" />
|
|
||||||
|
|
||||||
<xsd:complexType name="templating">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="loader" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
|
||||||
<xsd:element name="helpers" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
|
|
||||||
<xsd:attribute name="path" type="xsd:string" />
|
|
||||||
<xsd:attribute name="cache" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:schema>
|
|
@ -1,65 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
|
|
||||||
<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/zend"
|
|
||||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
||||||
targetNamespace="http://www.symfony-project.org/schema/dic/zend"
|
|
||||||
elementFormDefault="qualified">
|
|
||||||
|
|
||||||
<xsd:element name="logger" type="logger" />
|
|
||||||
|
|
||||||
<xsd:complexType name="logger">
|
|
||||||
<xsd:attribute name="priority" type="priority" />
|
|
||||||
<xsd:attribute name="path" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
|
|
||||||
<xsd:simpleType name="priority">
|
|
||||||
<xsd:restriction base="xsd:string">
|
|
||||||
<xsd:enumeration value="emerg" />
|
|
||||||
<xsd:enumeration value="alert" />
|
|
||||||
<xsd:enumeration value="crit" />
|
|
||||||
<xsd:enumeration value="err" />
|
|
||||||
<xsd:enumeration value="warn" />
|
|
||||||
<xsd:enumeration value="notice" />
|
|
||||||
<xsd:enumeration value="info" />
|
|
||||||
<xsd:enumeration value="debug" />
|
|
||||||
|
|
||||||
<xsd:enumeration value="0" />
|
|
||||||
<xsd:enumeration value="1" />
|
|
||||||
<xsd:enumeration value="2" />
|
|
||||||
<xsd:enumeration value="3" />
|
|
||||||
<xsd:enumeration value="4" />
|
|
||||||
<xsd:enumeration value="5" />
|
|
||||||
<xsd:enumeration value="6" />
|
|
||||||
<xsd:enumeration value="7" />
|
|
||||||
</xsd:restriction>
|
|
||||||
</xsd:simpleType>
|
|
||||||
|
|
||||||
<xsd:element name="mail" type="mail" />
|
|
||||||
|
|
||||||
<xsd:complexType name="mail">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="username" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="password" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="host" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="port" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="ssl" type="ssl" minOccurs="0" maxOccurs="1" />
|
|
||||||
<xsd:element name="auth" type="auth" minOccurs="0" maxOccurs="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
|
|
||||||
<xsd:attribute name="transport" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
|
|
||||||
<xsd:simpleType name="auth">
|
|
||||||
<xsd:restriction base="xsd:string">
|
|
||||||
<xsd:enumeration value="plain" />
|
|
||||||
<xsd:enumeration value="login" />
|
|
||||||
</xsd:restriction>
|
|
||||||
</xsd:simpleType>
|
|
||||||
|
|
||||||
<xsd:simpleType name="ssl">
|
|
||||||
<xsd:restriction base="xsd:string">
|
|
||||||
<xsd:enumeration value="tls" />
|
|
||||||
<xsd:enumeration value="ssl" />
|
|
||||||
</xsd:restriction>
|
|
||||||
</xsd:simpleType>
|
|
||||||
</xsd:schema>
|
|
Reference in New Issue
Block a user