Skip to content

Commit fd8dd56

Browse files
bocharsky-bwNyholm
authored andcommitted
Tweak indentations to 4 spaces as in Symfony recipes (#146)
1 parent 661523d commit fd8dd56

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

Readme.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ $ composer require php-translation/symfony-bundle
2020
```php
2121
class AppKernel extends Kernel
2222
{
23-
public function registerBundles()
24-
{
25-
$bundles = array(
26-
// ...
27-
new Translation\Bundle\TranslationBundle(),
23+
public function registerBundles()
24+
{
25+
$bundles = array(
26+
// ...
27+
new Translation\Bundle\TranslationBundle(),
28+
}
2829
}
29-
}
3030
}
3131
```
3232

@@ -35,38 +35,38 @@ An example configuration looks like this:
3535
```yaml
3636
# config.yml
3737
translation:
38-
locales: ["en", "sv"]
39-
symfony_profiler: # must be placed in config_dev.yml
40-
enabled: true
41-
webui:
42-
enabled: true
43-
edit_in_place:
44-
enabled: true
45-
config_name: default # the first one or one of your configs
46-
activator: php_translation.edit_in_place.activator
47-
configs:
48-
app:
49-
dirs: ["%kernel.root_dir%/Resources/views", "%kernel.root_dir%/../src"]
50-
output_dir: "%kernel.root_dir%/Resources/translations"
51-
excluded_names: ["*TestCase.php", "*Test.php"]
52-
excluded_dirs: [cache, data, logs]
38+
locales: ["en", "sv"]
39+
symfony_profiler: # must be placed in config_dev.yml
40+
enabled: true
41+
webui:
42+
enabled: true
43+
edit_in_place:
44+
enabled: true
45+
config_name: default # the first one or one of your configs
46+
activator: php_translation.edit_in_place.activator
47+
configs:
48+
app:
49+
dirs: ["%kernel.root_dir%/Resources/views", "%kernel.root_dir%/../src"]
50+
output_dir: "%kernel.root_dir%/Resources/translations"
51+
excluded_names: ["*TestCase.php", "*Test.php"]
52+
excluded_dirs: [cache, data, logs]
5353
```
5454
5555
```yaml
5656
# routing_dev.yml
5757
_translation_webui:
58-
resource: "@TranslationBundle/Resources/config/routing_webui.yml"
59-
prefix: /admin
58+
resource: "@TranslationBundle/Resources/config/routing_webui.yml"
59+
prefix: /admin
6060

6161
_translation_profiler:
62-
resource: '@TranslationBundle/Resources/config/routing_symfony_profiler.yml'
62+
resource: '@TranslationBundle/Resources/config/routing_symfony_profiler.yml'
6363
```
6464
6565
```yaml
6666
# routing.yml
6767
_translation_edit_in_place:
68-
resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yml'
69-
prefix: /admin
68+
resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yml'
69+
prefix: /admin
7070
```
7171
7272
## Documentation

0 commit comments

Comments
 (0)