Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
191 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full_disabled.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
|
||
$container->loadFromExtension('framework', array( | ||
'secret' => 's3cr3t', | ||
'default_locale' => 'fr', | ||
'form' => null, | ||
'trust_proxy_headers' => true, | ||
'trusted_proxies' => array('127.0.0.1', '10.0.0.1'), | ||
'csrf_protection' => array( | ||
'enabled' => true, | ||
'field_name' => '_csrf', | ||
), | ||
'esi' => array( | ||
'enabled' => true, | ||
), | ||
'profiler' => array( | ||
'only_exceptions' => true, | ||
'enabled' => false, | ||
), | ||
'router' => array( | ||
'resource' => '%kernel.root_dir%/config/routing.xml', | ||
'type' => 'xml', | ||
), | ||
'session' => array( | ||
'storage_id' => 'session.storage.native', | ||
'handler_id' => 'session.handler.native_file', | ||
'name' => '_SYMFONY', | ||
'lifetime' => 86400, | ||
'path' => '/', | ||
'domain' => 'example.com', | ||
'secure' => true, | ||
'httponly' => true, | ||
'gc_maxlifetime' => 90000, | ||
'gc_divisor' => 108, | ||
'gc_probability' => 1, | ||
'save_path' => '/path/to/sessions', | ||
), | ||
'templating' => array( | ||
'assets_version' => 'SomeVersionScheme', | ||
'assets_base_urls' => 'http://cdn.example.com', | ||
'cache' => '/path/to/cache', | ||
'engines' => array('php', 'twig'), | ||
'loader' => array('loader.foo', 'loader.bar'), | ||
'packages' => array( | ||
'images' => array( | ||
'version' => '1.0.0', | ||
'base_urls' => array('http://images1.example.com', 'http://images2.example.com'), | ||
), | ||
'foo' => array( | ||
'version' => '1.0.0', | ||
), | ||
'bar' => array( | ||
'base_urls' => array('http://bar1.example.com', 'http://bar2.example.com'), | ||
), | ||
), | ||
'form' => array( | ||
'resources' => array('theme1', 'theme2') | ||
), | ||
), | ||
'translator' => array( | ||
'enabled' => true, | ||
'fallback' => 'fr', | ||
), | ||
'validation' => array( | ||
'enabled' => true, | ||
'cache' => 'apc', | ||
), | ||
'annotations' => array( | ||
'cache' => 'file', | ||
'debug' => true, | ||
'file_cache_dir' => '%kernel.cache_dir%/annotations', | ||
), | ||
'ide' => 'file%%link%%format' | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/full_disabled.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:framework="http://symfony.com/schema/dic/symfony" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> | ||
|
||
<framework:config secret="s3cr3t" ide="file%%link%%format" default-locale="fr" trust-proxy-headers="true" trusted-proxies="127.0.0.1, 10.0.0.1"> | ||
<framework:csrf-protection enabled="true" field-name="_csrf" /> | ||
<framework:form /> | ||
<framework:esi enabled="true" /> | ||
<framework:profiler only-exceptions="true" enabled="false" /> | ||
<framework:router resource="%kernel.root_dir%/config/routing.xml" type="xml" /> | ||
<framework:session gc-maxlifetime="90000" gc-probability="1" gc-divisor="108" storage-id="session.storage.native" handler-id="session.handler.native_file" name="_SYMFONY" cookie-lifetime="86400" cookie-path="/" cookie-domain="example.com" cookie-secure="true" cookie-httponly="true" save-path="/path/to/sessions" /> | ||
<framework:templating assets-version="SomeVersionScheme" cache="/path/to/cache" > | ||
<framework:loader>loader.foo</framework:loader> | ||
<framework:loader>loader.bar</framework:loader> | ||
<framework:engine>php</framework:engine> | ||
<framework:engine>twig</framework:engine> | ||
<framework:assets-base-url>http://cdn.example.com</framework:assets-base-url> | ||
<framework:package name="images" version="1.0.0"> | ||
<framework:base-url>http://images1.example.com</framework:base-url> | ||
<framework:base-url>http://images2.example.com</framework:base-url> | ||
</framework:package> | ||
<framework:package name="foo" version="1.0.0" /> | ||
<framework:package name="bar"> | ||
<framework:base-url>http://bar1.example.com</framework:base-url> | ||
<framework:base-url>http://bar2.example.com</framework:base-url> | ||
</framework:package> | ||
<framework:form> | ||
<framework:resource>theme1</framework:resource> | ||
<framework:resource>theme2</framework:resource> | ||
</framework:form> | ||
</framework:templating> | ||
<framework:translator enabled="true" fallback="fr" /> | ||
<framework:validation enabled="true" cache="apc" /> | ||
<framework:annotations cache="file" debug="true" file-cache-dir="%kernel.cache_dir%/annotations" /> | ||
</framework:config> | ||
</container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/full_disabled.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
framework: | ||
secret: s3cr3t | ||
default_locale: fr | ||
form: ~ | ||
trust_proxy_headers: true | ||
trusted_proxies: ['127.0.0.1', '10.0.0.1'] | ||
csrf_protection: | ||
enabled: true | ||
field_name: _csrf | ||
esi: | ||
enabled: true | ||
profiler: | ||
only_exceptions: true | ||
enabled: false | ||
router: | ||
resource: %kernel.root_dir%/config/routing.xml | ||
type: xml | ||
session: | ||
storage_id: session.storage.native | ||
handler_id: session.handler.native_file | ||
name: _SYMFONY | ||
lifetime: 86400 | ||
path: / | ||
domain: example.com | ||
secure: true | ||
httponly: true | ||
gc_probability: 1 | ||
gc_divisor: 108 | ||
gc_maxlifetime: 90000 | ||
save_path: /path/to/sessions | ||
templating: | ||
assets_version: SomeVersionScheme | ||
assets_base_urls: http://cdn.example.com | ||
engines: [php, twig] | ||
loader: [loader.foo, loader.bar] | ||
cache: /path/to/cache | ||
packages: | ||
images: | ||
version: 1.0.0 | ||
base_urls: ["http://images1.example.com", "http://images2.example.com"] | ||
foo: | ||
version: 1.0.0 | ||
bar: | ||
base_urls: ["http://images1.example.com", "http://images2.example.com"] | ||
form: | ||
resources: [theme1, theme2] | ||
translator: | ||
enabled: true | ||
fallback: fr | ||
validation: | ||
enabled: true | ||
cache: apc | ||
annotations: | ||
cache: file | ||
debug: true | ||
file_cache_dir: %kernel.cache_dir%/annotations | ||
ide: file%%link%%format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters