-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathservices.yml
More file actions
69 lines (55 loc) · 2.02 KB
/
services.yml
File metadata and controls
69 lines (55 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
imports:
- { resource: 'services/*.yml' }
services:
_defaults:
autowire: true
autoconfigure: true
public: false
PhpList\Core\Core\ApplicationStructure:
public: true
PhpList\Core\Security\Authentication:
public: true
PhpList\Core\Security\HashGenerator:
public: true
PhpList\Core\Routing\ExtraLoader:
tags: [routing.loader]
PhpList\Core\Domain\Common\Repository\AbstractRepository:
abstract: true
autowire: true
autoconfigure: false
public: true
factory: ['@doctrine.orm.entity_manager', getRepository]
# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
PhpList\Core\EmptyStartPageBundle\Controller\:
resource: '../src/EmptyStartPageBundle/Controller'
public: true
tags: [controller.service_arguments]
doctrine.orm.metadata.annotation_reader:
alias: doctrine.annotation_reader
doctrine.annotation_reader:
class: Doctrine\Common\Annotations\AnnotationReader
autowire: true
doctrine.orm.default_annotation_metadata_driver:
class: Doctrine\ORM\Mapping\Driver\AnnotationDriver
arguments:
- '@annotation_reader'
- '%kernel.project_dir%/src/Domain/Model/'
PhpList\Core\Core\Doctrine\OnlyOrmTablesFilter:
lazy: true
tags:
- { name: 'doctrine.dbal.schema_filter', connection: 'default' }
HTMLPurifier_Config:
class: HTMLPurifier_Config
factory: [ 'HTMLPurifier_Config', 'createDefault' ]
calls:
- [ set, [ 'Cache.SerializerPath', '%kernel.cache_dir%/htmlpurifier' ] ]
- [ set, [ 'HTML.ForbiddenElements', [ 'script', 'style' ] ] ]
- [ set, [ 'CSS.AllowedProperties', [] ] ]
- [ set, [ 'URI.AllowedSchemes', { http: true, https: true, mailto: true } ] ]
- [ set, [ 'HTML.Doctype', 'XHTML 1.0 Transitional' ] ]
- [ set, [ 'HTML.Allowed', 'p,br,b,strong,i,em,u,a[href|title],ul,ol,li,blockquote,img[src|alt|title],span,div'] ]
HTMLPurifier:
class: HTMLPurifier
arguments:
- '@HTMLPurifier_Config'