This commit is contained in:
Fabien Potencier 2011-06-08 12:16:48 +02:00
parent 62e4342a86
commit 1aabc5da64
373 changed files with 375 additions and 373 deletions

View File

@ -80,7 +80,9 @@ foreach ($finder as $file) {
}, $new);
// [Structure] A file must always ends with a linefeed character
// FIXME
if (strlen($new) && "\n" != $new[strlen($new) - 1]) {
$new .= "\n";
}
if ($new != $old) {
$exit = 1;

View File

@ -73,4 +73,4 @@ class IndexedReader implements Reader
{
return $this->delegate->getPropertyAnnotation($property, $annotation);
}
}
}

View File

@ -296,4 +296,4 @@ class EntityChoiceList extends ArrayChoiceList
return $this->unitOfWork->getEntityIdentifier($entity);
}
}
}

View File

@ -100,4 +100,4 @@ class EntitiesToArrayTransformer implements DataTransformerInterface
return $collection;
}
}
}

View File

@ -75,4 +75,4 @@ class EntityToIdTransformer implements DataTransformerInterface
return $entity;
}
}
}

View File

@ -56,4 +56,4 @@ class MergeCollectionListener implements EventSubscriberInterface
$event->setData($collection);
}
}
}

View File

@ -275,4 +275,4 @@
{% set type = type|default('email') %}
{{ block('field_widget') }}
{% endspaceless %}
{% endblock email_widget %}
{% endblock email_widget %}

View File

@ -52,4 +52,4 @@ EOT
return parent::execute($input, $output);
}
}
}

View File

@ -52,4 +52,4 @@ EOT
return parent::execute($input, $output);
}
}
}

View File

@ -67,4 +67,4 @@ EOT
return parent::execute($input, $output);
}
}
}

View File

@ -58,4 +58,4 @@ EOT
parent::execute($input, $output);
}
}
}

View File

@ -58,4 +58,4 @@ EOT
parent::execute($input, $output);
}
}
}

View File

@ -53,4 +53,4 @@ EOT
parent::execute($input, $output);
}
}
}

View File

@ -58,4 +58,4 @@ EOT
return parent::execute($input, $output);
}
}
}

View File

@ -62,4 +62,4 @@ EOT
parent::execute($input, $output);
}
}
}

View File

@ -63,4 +63,4 @@ class ConnectionFactory
}
}
}
}
}

View File

@ -44,4 +44,4 @@ class ContainerTest extends TestCase
$this->assertTrue(Type::hasType('test'));
}
}
}

View File

@ -13,4 +13,4 @@ namespace Fixtures\Bundles\AnnotationsBundle\Entity;
class Test
{
}
}

View File

@ -13,4 +13,4 @@ namespace Fixtures\Bundles\Vendor\AnnotationsBundle\Entity;
class Test
{
}
}

View File

@ -13,4 +13,4 @@ namespace Fixtures\Bundles\XmlBundle\Entity;
class Test
{
}
}

View File

@ -14,4 +14,4 @@ namespace Fixtures\Bundles\YamlBundle\Entity;
class Test
{
private $id;
}
}

View File

@ -2,4 +2,4 @@ Fixtures\Bundles\YamlBundle\Entity\Test:
type: entity
id:
id:
type: integer
type: integer

View File

@ -26,4 +26,4 @@ class TestStringFunction extends FunctionNode
{
return '';
}
}
}

View File

@ -26,4 +26,4 @@ class TestStringFunction extends FunctionNode
{
return '';
}
}
}

View File

@ -26,4 +26,4 @@ class TestStringFunction extends FunctionNode
{
return '';
}
}
}

View File

@ -24,4 +24,4 @@ class TestType extends \Doctrine\DBAL\Types\Type
{
return '';
}
}
}

View File

@ -61,4 +61,4 @@ class XMLSchemaTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($found, "Neither <doctrine:orm> nor <doctrine:dbal> elements found in given XML. Are namespaces configured correctly?");
}
}
}

View File

@ -22,4 +22,4 @@ class XmlDoctrineExtensionTest extends AbstractDoctrineExtensionTest
$loadXml = new XmlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/config/xml'));
$loadXml->load($file.'.xml');
}
}
}

View File

@ -22,4 +22,4 @@ class YamlDoctrineExtensionTest extends AbstractDoctrineExtensionTest
$loadYaml = new YamlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/config/yml'));
$loadYaml->load($file.'.yml');
}
}
}

View File

@ -107,4 +107,4 @@ require_once '$path';
echo serialize(\$kernel->handle(unserialize('$request')));
EOF;
}
}
}

View File

@ -31,4 +31,4 @@ class AddConstraintValidatorsPass implements CompilerPassInterface
$container->getDefinition('validator.validator_factory')->replaceArgument(1, $validators);
}
}
}

View File

@ -30,4 +30,4 @@ class CompilerDebugDumpPass implements CompilerPassInterface
return $container->getParameter('kernel.cache_dir').'/'.$class.'Compiler.log';
}
}
}

View File

@ -63,4 +63,4 @@ class FormPass implements CompilerPassInterface
$container->getDefinition('form.extension')->replaceArgument(3, $guessers);
}
}
}

View File

@ -54,4 +54,4 @@ class SessionListener
$session->start();
}
}
}
}

View File

@ -19,4 +19,4 @@
<div id="trace_{{ prefix ~ '_' ~ i }}" style="display: {{ 0 == i ? 'block' : 'none' }}" class="trace">
{{ trace.file|file_excerpt(trace.line) }}
</div>
{% endif %}
{% endif %}

View File

@ -22,4 +22,4 @@
</li>
{% endfor %}
</ol>
</div>
</div>

View File

@ -5,4 +5,4 @@
<?php if ($max_length): ?>maxlength="<?php echo $view->escape($max_length) ?>"<?php endif ?>
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
<?php if ($required): ?>required="required"<?php endif ?>
/>
/>

View File

@ -2,4 +2,4 @@
<?php if (!$child->isRendered()): ?>
<?php echo $view['form']->row($child) ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>

View File

@ -2,4 +2,4 @@
<?php echo $view['form']->label($form) ?>
<?php echo $view['form']->errors($form) ?>
<?php echo $view['form']->widget($form) ?>
</div>
</div>

View File

@ -4,4 +4,4 @@
value="<?php echo $view->escape($value) ?>"
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
<?php if ($required): ?>required="required"<?php endif ?>
/>
/>

View File

@ -1 +1 @@
<?php echo $view['form']->label($form['file']) ?>
<?php echo $view['form']->label($form['file']) ?>

View File

@ -1 +1 @@
<?php echo $view['form']->widget($form) ?>
<?php echo $view['form']->widget($form) ?>

View File

@ -3,4 +3,4 @@
name="<?php echo $view->escape($full_name) ?>"
value="<?php echo $view->escape($value) ?>"
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
/>
/>

View File

@ -4,4 +4,4 @@
value="<?php echo $view->escape($value) ?>"
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
<?php if ($required): ?>required="required"<?php endif ?>
/>
/>

View File

@ -6,4 +6,4 @@
<?php if ($required): ?>required="required"<?php endif ?>
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
<?php if ($pattern): ?>pattern="<?php echo $pattern ?>"<?php endif ?>
/>
/>

View File

@ -6,4 +6,4 @@
<?php if ($required): ?>required="required"<?php endif ?>
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
<?php if ($pattern): ?>pattern="<?php echo $pattern ?>"<?php endif ?>
/>
/>

View File

@ -2,4 +2,4 @@
<?php foreach ($form as $child): ?>
<?php echo $view['form']->row($child); ?>
<?php endforeach; ?>
<?php endforeach; ?>

View File

@ -5,4 +5,4 @@
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
<?php if ($required): ?>required="required"<?php endif ?>
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
/>
/>

View File

@ -6,4 +6,4 @@
<?php if ($required): ?>required="required"<?php endif ?>
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
<?php if ($pattern): ?>pattern="<?php echo $pattern ?>"<?php endif ?>
/>
/>

View File

@ -11,4 +11,4 @@
echo $view['form']->widget($form['second'], array('attr' => array('size' => 1)));
}
?>
</div>
</div>

View File

@ -4,4 +4,4 @@
value="<?php echo $view->escape($value) ?>"
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
<?php if ($required): ?>required="required"<?php endif ?>
/>
/>

View File

@ -129,4 +129,4 @@ class Service
function onEvent(Event $e)
{
}
}
}

View File

@ -14,4 +14,4 @@ namespace Symfony\Bundle\FrameworkBundle\Tests;
class TestBundle extends \Symfony\Component\HttpKernel\Bundle\Bundle
{
}
}

View File

@ -126,4 +126,4 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
array(HttpKernelInterface::SUB_REQUEST),
);
}
}
}

View File

@ -35,4 +35,4 @@ class StubTemplateNameParser implements TemplateNameParserInterface
return new TemplateReference($path, 'php');
}
}
}

View File

@ -32,4 +32,4 @@ class StubTranslator implements TranslatorInterface
public function getLocale()
{
}
}
}

View File

@ -1,3 +1,3 @@
<div id="container">
<?php echo $view['form']->render($form, 'FrameworkBundle:Form:text_widget.html.php') ?>
</div>
</div>

View File

@ -42,4 +42,4 @@ class AddSecurityVotersPass implements CompilerPassInterface
$container->getDefinition('security.access.decision_manager')->replaceArgument(0, array_values($voters));
}
}
}

View File

@ -51,4 +51,4 @@ class FactoryConfiguration implements ConfigurationInterface
return $tb;
}
}
}

View File

@ -360,4 +360,4 @@ class MainConfiguration implements ConfigurationInterface
->end()
;
}
}
}

View File

@ -31,4 +31,4 @@ class ResponseListener
$response->headers->setCookie($request->attributes->get(RememberMeServicesInterface::COOKIE_ATTR_NAME));
}
}
}
}

View File

@ -43,4 +43,4 @@ class FirewallMap implements FirewallMapInterface
return array(array(), null);
}
}
}

View File

@ -6,4 +6,4 @@ $container->loadFromExtension('security', array(
'acl' => array(
'provider' => 'foo',
)
));
));

View File

@ -17,4 +17,4 @@ $container->loadFromExtension('security', array(
'role_hierarchy' => array(
'FOO' => array('MOO'),
)
));
));

View File

@ -12,4 +12,4 @@ $container->loadFromExtension('security', array(
'FOO' => 'BAR',
'ADMIN' => 'USER',
),
));
));

View File

@ -13,4 +13,4 @@
<sec:acl provider="foo" />
</sec:config>
</container>
</container>

View File

@ -19,4 +19,4 @@
<sec:role id="FOO" value="MOO" />
</sec:config>
</container>
</container>

View File

@ -14,4 +14,4 @@
<role id="ADMIN" value="USER" />
</config>
</srv:container>
</srv:container>

View File

@ -3,4 +3,4 @@ imports:
security:
acl:
provider: foo
provider: foo

View File

@ -11,4 +11,4 @@ security:
http_basic: ~
role_hierarchy:
FOO: [MOO]
FOO: [MOO]

View File

@ -63,4 +63,4 @@ class AbstractFactoryTest extends \PHPUnit_Framework_TestCase
{
return $this->getMockForAbstractClass('Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AbstractFactory', array());
}
}
}

View File

@ -42,4 +42,4 @@ class LoginController extends ContainerAware
{
return new Response('', 400);
}
}
}

View File

@ -15,4 +15,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
class FormLoginBundle extends Bundle
{
}
}

View File

@ -16,4 +16,4 @@ form_login_custom_target_path:
form_login_redirect_to_protected_resource_after_login:
pattern: /protected-resource
defaults: { _controller: FormLoginBundle:Login:afterLogin }
defaults: { _controller: FormLoginBundle:Login:afterLogin }

View File

@ -3,4 +3,4 @@
{% block body %}
Hello {{ app.user.username }}!<br /><br />
You're browsing to path "{{ app.request.pathInfo }}".
{% endblock %}
{% endblock %}

View File

@ -18,4 +18,4 @@
<input type="submit" name="login" />
</form>
{% endblock %}
{% endblock %}

View File

@ -80,4 +80,4 @@ class FormLoginTest extends WebTestCase
$this->deleteTmpDir('StandardFormLogin');
}
}
}

View File

@ -56,4 +56,4 @@ class SecurityRoutingIntegrationTest extends WebTestCase
$this->deleteTmpDir('StandardFormLogin');
}
}
}

View File

@ -63,4 +63,4 @@ class WebTestCase extends BaseWebTestCase
isset($options['debug']) ? $options['debug'] : true
);
}
}
}

View File

@ -77,4 +77,4 @@ class AppKernel extends Kernel
return $parameters;
}
}
}

View File

@ -10,4 +10,4 @@ return array(
new SecurityBundle(),
new TwigBundle(),
new FormLoginBundle(),
);
);

View File

@ -26,4 +26,4 @@ security:
access_control:
- { path: ^/unprotected_resource$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/highly_protected_resource$, roles: IS_ADMIN }
- { path: .*, roles: IS_AUTHENTICATED_FULLY }
- { path: .*, roles: IS_AUTHENTICATED_FULLY }

View File

@ -1,3 +1,3 @@
imports:
- { resource: framework.yml }
- { resource: twig.yml }
- { resource: twig.yml }

View File

@ -82,4 +82,4 @@ class MessageDataCollector extends DataCollector
{
return 'swiftmailer';
}
}
}

View File

@ -22,4 +22,4 @@
</div>
</form>
</div>
</div>
</div>

View File

@ -345,4 +345,4 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
return $leftSide;
}
}
}

View File

@ -36,4 +36,4 @@ class BooleanNode extends ScalarNode
throw $ex;
}
}
}
}

View File

@ -309,4 +309,4 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
return $node;
}
}
}

View File

@ -40,4 +40,4 @@ class BooleanNodeDefinition extends ScalarNodeDefinition
return new BooleanNode($this->name, $this->parent);
}
}
}

View File

@ -223,4 +223,4 @@ class ExprBuilder
return $expressions;
}
}
}

View File

@ -70,4 +70,4 @@ class MergeBuilder
{
return $this->node;
}
}
}

View File

@ -179,4 +179,4 @@ class NodeBuilder implements NodeParentInterface
return $class;
}
}
}

View File

@ -294,4 +294,4 @@ abstract class NodeDefinition implements NodeParentInterface
*/
abstract protected function createNode();
}
}

View File

@ -67,4 +67,4 @@ class NormalizationBuilder
return $this->before[] = new ExprBuilder($this->node);
}
}
}

View File

@ -30,4 +30,4 @@ class ScalarNodeDefinition extends VariableNodeDefinition
return new ScalarNode($this->name, $this->parent);
}
}
}

View File

@ -59,4 +59,4 @@ class TreeBuilder implements NodeParentInterface
return $this->tree = $this->root->getNode(true);
}
}
}

View File

@ -50,4 +50,4 @@ class ValidationBuilder
return $this->rules[] = new ExprBuilder($this->node);
}
}
}

View File

@ -66,4 +66,4 @@ class VariableNodeDefinition extends NodeDefinition
return $node;
}
}
}

View File

@ -24,4 +24,4 @@ interface ConfigurationInterface
* @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
*/
function getConfigTreeBuilder();
}
}

Some files were not shown because too many files have changed in this diff Show More