diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/AppKernel.php | 2 | ||||
-rw-r--r-- | app/config/config.yml | 16 | ||||
-rw-r--r-- | app/config/config_test.yml | 1 | ||||
-rw-r--r-- | app/config/parameters.yml.dist | 11 | ||||
-rw-r--r-- | app/config/security.yml | 4 | ||||
-rw-r--r-- | app/config/services.yml | 6 | ||||
-rw-r--r-- | app/config/services_test.yml | 38 |
7 files changed, 63 insertions, 15 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index 40726f05..546794de 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -32,6 +32,7 @@ class AppKernel extends Kernel | |||
32 | new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), | 32 | new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), |
33 | new FOS\JsRoutingBundle\FOSJsRoutingBundle(), | 33 | new FOS\JsRoutingBundle\FOSJsRoutingBundle(), |
34 | new BD\GuzzleSiteAuthenticatorBundle\BDGuzzleSiteAuthenticatorBundle(), | 34 | new BD\GuzzleSiteAuthenticatorBundle\BDGuzzleSiteAuthenticatorBundle(), |
35 | new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(), | ||
35 | 36 | ||
36 | // wallabag bundles | 37 | // wallabag bundles |
37 | new Wallabag\CoreBundle\WallabagCoreBundle(), | 38 | new Wallabag\CoreBundle\WallabagCoreBundle(), |
@@ -39,7 +40,6 @@ class AppKernel extends Kernel | |||
39 | new Wallabag\UserBundle\WallabagUserBundle(), | 40 | new Wallabag\UserBundle\WallabagUserBundle(), |
40 | new Wallabag\ImportBundle\WallabagImportBundle(), | 41 | new Wallabag\ImportBundle\WallabagImportBundle(), |
41 | new Wallabag\AnnotationBundle\WallabagAnnotationBundle(), | 42 | new Wallabag\AnnotationBundle\WallabagAnnotationBundle(), |
42 | new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(), | ||
43 | ]; | 43 | ]; |
44 | 44 | ||
45 | if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { | 45 | if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { |
diff --git a/app/config/config.yml b/app/config/config.yml index 0c2b6a1d..092f3ec0 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -79,10 +79,13 @@ doctrine_migrations: | |||
79 | 79 | ||
80 | # Swiftmailer Configuration | 80 | # Swiftmailer Configuration |
81 | swiftmailer: | 81 | swiftmailer: |
82 | transport: "%mailer_transport%" | 82 | transport: "%mailer_transport%" |
83 | host: "%mailer_host%" | 83 | username: "%mailer_user%" |
84 | username: "%mailer_user%" | 84 | password: "%mailer_password%" |
85 | password: "%mailer_password%" | 85 | host: "%mailer_host%" |
86 | port: "%mailer_port%" | ||
87 | encryption: "%mailer_encryption%" | ||
88 | auth_mode: "%mailer_auth_mode%" | ||
86 | spool: | 89 | spool: |
87 | type: memory | 90 | type: memory |
88 | 91 | ||
@@ -357,3 +360,8 @@ jms_serializer: | |||
357 | # see: https://github.com/schmittjoh/JMSSerializerBundle/pull/494 | 360 | # see: https://github.com/schmittjoh/JMSSerializerBundle/pull/494 |
358 | datetime: | 361 | datetime: |
359 | default_format: "Y-m-d\\TH:i:sO" # ATOM | 362 | default_format: "Y-m-d\\TH:i:sO" # ATOM |
363 | |||
364 | # see https://github.com/symfony/symfony-standard/pull/1133 | ||
365 | sensio_framework_extra: | ||
366 | router: | ||
367 | annotations: false | ||
diff --git a/app/config/config_test.yml b/app/config/config_test.yml index fc067ff4..11e0feb7 100644 --- a/app/config/config_test.yml +++ b/app/config/config_test.yml | |||
@@ -1,6 +1,7 @@ | |||
1 | imports: | 1 | imports: |
2 | - { resource: config_dev.yml } | 2 | - { resource: config_dev.yml } |
3 | - { resource: parameters_test.yml } | 3 | - { resource: parameters_test.yml } |
4 | - { resource: services_test.yml } | ||
4 | 5 | ||
5 | framework: | 6 | framework: |
6 | test: ~ | 7 | test: ~ |
diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index 6b0cb8e8..d21f20e0 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist | |||
@@ -27,10 +27,13 @@ parameters: | |||
27 | 27 | ||
28 | domain_name: https://your-wallabag-url-instance.com | 28 | domain_name: https://your-wallabag-url-instance.com |
29 | 29 | ||
30 | mailer_transport: smtp | 30 | mailer_transport: smtp |
31 | mailer_host: 127.0.0.1 | 31 | mailer_user: ~ |
32 | mailer_user: ~ | 32 | mailer_password: ~ |
33 | mailer_password: ~ | 33 | mailer_host: 127.0.0.1 |
34 | mailer_port: false | ||
35 | mailer_encryption: ~ | ||
36 | mailer_auth_mode: ~ | ||
34 | 37 | ||
35 | locale: en | 38 | locale: en |
36 | 39 | ||
diff --git a/app/config/security.yml b/app/config/security.yml index 02afc9ea..0318fce1 100644 --- a/app/config/security.yml +++ b/app/config/security.yml | |||
@@ -31,12 +31,15 @@ security: | |||
31 | fos_oauth: true | 31 | fos_oauth: true |
32 | stateless: true | 32 | stateless: true |
33 | anonymous: true | 33 | anonymous: true |
34 | provider: fos_userbundle | ||
34 | 35 | ||
35 | login_firewall: | 36 | login_firewall: |
37 | logout_on_user_change: true | ||
36 | pattern: ^/login$ | 38 | pattern: ^/login$ |
37 | anonymous: ~ | 39 | anonymous: ~ |
38 | 40 | ||
39 | secured_area: | 41 | secured_area: |
42 | logout_on_user_change: true | ||
40 | pattern: ^/ | 43 | pattern: ^/ |
41 | form_login: | 44 | form_login: |
42 | provider: fos_userbundle | 45 | provider: fos_userbundle |
@@ -61,6 +64,7 @@ security: | |||
61 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } | 64 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } |
62 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } | 65 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } |
63 | - { path: /(unread|starred|archive|all).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 66 | - { path: /(unread|starred|archive|all).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
67 | - { path: ^/locale, role: IS_AUTHENTICATED_ANONYMOUSLY } | ||
64 | - { path: /tags/(.*).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 68 | - { path: /tags/(.*).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
65 | - { path: ^/share, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 69 | - { path: ^/share, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
66 | - { path: ^/settings, roles: ROLE_SUPER_ADMIN } | 70 | - { path: ^/settings, roles: ROLE_SUPER_ADMIN } |
diff --git a/app/config/services.yml b/app/config/services.yml index 7b85d846..25bbe5dc 100644 --- a/app/config/services.yml +++ b/app/config/services.yml | |||
@@ -2,12 +2,6 @@ parameters: | |||
2 | lexik_form_filter.get_filter.doctrine_orm.class: Wallabag\CoreBundle\Event\Subscriber\CustomDoctrineORMSubscriber | 2 | lexik_form_filter.get_filter.doctrine_orm.class: Wallabag\CoreBundle\Event\Subscriber\CustomDoctrineORMSubscriber |
3 | 3 | ||
4 | services: | 4 | services: |
5 | # used for tests | ||
6 | filesystem_cache: | ||
7 | class: Doctrine\Common\Cache\FilesystemCache | ||
8 | arguments: | ||
9 | - "%kernel.cache_dir%/doctrine/metadata" | ||
10 | |||
11 | twig.extension.text: | 5 | twig.extension.text: |
12 | class: Twig_Extensions_Extension_Text | 6 | class: Twig_Extensions_Extension_Text |
13 | tags: | 7 | tags: |
diff --git a/app/config/services_test.yml b/app/config/services_test.yml new file mode 100644 index 00000000..a300f75d --- /dev/null +++ b/app/config/services_test.yml | |||
@@ -0,0 +1,38 @@ | |||
1 | services: | ||
2 | # see https://github.com/symfony/symfony/issues/24543 | ||
3 | fos_user.user_manager.test: | ||
4 | alias: fos_user.user_manager | ||
5 | public: true | ||
6 | |||
7 | fos_user.security.login_manager.test: | ||
8 | alias: fos_user.security.login_manager | ||
9 | public: true | ||
10 | |||
11 | wallabag_core.entry_repository.test: | ||
12 | alias: wallabag_core.entry_repository | ||
13 | public: true | ||
14 | |||
15 | wallabag_user.user_repository.test: | ||
16 | alias: wallabag_user.user_repository | ||
17 | public: true | ||
18 | |||
19 | filesystem_cache: | ||
20 | class: Doctrine\Common\Cache\FilesystemCache | ||
21 | arguments: | ||
22 | - "%kernel.cache_dir%/doctrine/metadata" | ||
23 | |||
24 | # fixtures | ||
25 | Wallabag\AnnotationBundle\DataFixtures\ORM\: | ||
26 | resource: '../../src/Wallabag/AnnotationBundle/DataFixtures/ORM/*' | ||
27 | tags: ['doctrine.fixture.orm'] | ||
28 | autowire: true | ||
29 | |||
30 | Wallabag\CoreBundle\DataFixtures\ORM\: | ||
31 | resource: '../../src/Wallabag/CoreBundle/DataFixtures/ORM/*' | ||
32 | tags: ['doctrine.fixture.orm'] | ||
33 | autowire: true | ||
34 | |||
35 | Wallabag\UserBundle\DataFixtures\ORM\: | ||
36 | resource: '../../src/Wallabag/UserBundle/DataFixtures/ORM/*' | ||
37 | tags: ['doctrine.fixture.orm'] | ||
38 | autowire: true | ||