mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
rename AddressFormType to AddressType and rename ORM driver to doctrine/orm.
This commit is contained in:
parent
54b48e4f93
commit
eec4203c56
4 changed files with 10 additions and 10 deletions
|
|
@ -11,11 +11,11 @@
|
|||
|
||||
namespace Sylius\Bundle\AddressingBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
use Symfony\Component\Config\Definition\Processor;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||||
|
||||
/**
|
||||
* Addressing system extension.
|
||||
|
|
@ -33,7 +33,7 @@ class SyliusAddressingExtension extends Extension
|
|||
|
||||
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/container'));
|
||||
|
||||
if (!in_array($config['driver'], array('ORM'))) {
|
||||
if (!in_array($config['driver'], array('doctrine/orm'))) {
|
||||
throw new \InvalidArgumentException(sprintf('Driver "%s" is unsupported for this extension.', $config['driver']));
|
||||
}
|
||||
|
||||
|
|
@ -49,8 +49,8 @@ class SyliusAddressingExtension extends Extension
|
|||
|
||||
$configurations = array(
|
||||
'controllers',
|
||||
'manipulators',
|
||||
'forms',
|
||||
'manipulators'
|
||||
);
|
||||
|
||||
foreach($configurations as $basename) {
|
||||
|
|
@ -58,8 +58,8 @@ class SyliusAddressingExtension extends Extension
|
|||
}
|
||||
|
||||
$this->remapParametersNamespaces($config['classes'], $container, array(
|
||||
'model' => 'sylius_addressing.model.%s.class',
|
||||
'manipulator' => 'sylius_addressing.manipulator.%s.class'
|
||||
'manipulator' => 'sylius_addressing.manipulator.%s.class',
|
||||
'model' => 'sylius_addressing.model.%s.class'
|
||||
));
|
||||
|
||||
$this->remapParametersNamespaces($config['classes']['form'], $container, array(
|
||||
|
|
@ -72,7 +72,7 @@ class SyliusAddressingExtension extends Extension
|
|||
));
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Remap parameters.
|
||||
*/
|
||||
protected function remapParameters(array $config, ContainerBuilder $container, array $map)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use Symfony\Component\Form\AbstractType;
|
|||
*
|
||||
* @author Paweł Jędrzejewski <pjedrzejewski@sylius.pl>
|
||||
*/
|
||||
abstract class AddressFormType extends AbstractType
|
||||
abstract class AddressType extends AbstractType
|
||||
{
|
||||
/**
|
||||
* Data class.
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2011 Paweł Jędrzejewski
|
||||
Copyright (c) 2011-2012 Paweł Jędrzejewski
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue