File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ higher limit with the `opcache.max_accelerated_files`_ configuration option:
64
64
; php.ini
65
65
opcache.max_accelerated_files = 20000
66
66
67
- .. index ::
68
- single: Performance; Autoloader
69
-
70
67
Configure the PHP realpath Cache
71
68
--------------------------------
72
69
@@ -86,6 +83,9 @@ value too using the ``realpath_cache_ttl`` option:
86
83
realpath_cache_size =4096K
87
84
realpath_cache_ttl =600
88
85
86
+ .. index ::
87
+ single: Performance; Autoloader
88
+
89
89
Use Composer's Class Map Functionality
90
90
--------------------------------------
91
91
@@ -105,7 +105,7 @@ in ``vendor/composer/autoload_classmap.php``.
105
105
The class map can be generated from the command line, and might become part of
106
106
your deploy process:
107
107
108
- .. code-block :: terminal
108
+ .. code-block :: bash
109
109
110
110
$ composer dump-autoload --optimize --no-dev --classmap-authoritative
111
111
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ Full Default Configuration
203
203
password =" secret"
204
204
driver =" pdo_mysql"
205
205
driver-class =" MyNamespace\MyDriverImpl"
206
- path =" %kernel.data_dir% /data.sqlite"
206
+ path =" %kernel.root_dir%/../var/data /data.sqlite"
207
207
memory =" true"
208
208
unix-socket =" /tmp/mysql.sock"
209
209
wrapper-class =" MyDoctrineDbalConnectionWrapper"
@@ -395,7 +395,7 @@ The following block shows all possible configuration keys:
395
395
# the DBAL driverOptions option
396
396
options :
397
397
foo : bar
398
- path : ' %kernel.data_dir% /data.sqlite'
398
+ path : ' %kernel.root_dir%/data /data.sqlite'
399
399
memory : true
400
400
unix_socket : /tmp/mysql.sock
401
401
# the DBAL wrapperClass option
@@ -431,7 +431,7 @@ The following block shows all possible configuration keys:
431
431
password =" secret"
432
432
driver =" pdo_mysql"
433
433
driver-class =" MyNamespace\MyDriverImpl"
434
- path =" %kernel.data_dir% /data.sqlite"
434
+ path =" %kernel.root_dir%/../var/data /data.sqlite"
435
435
memory =" true"
436
436
unix-socket =" /tmp/mysql.sock"
437
437
wrapper-class =" MyDoctrineDbalConnectionWrapper"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ the ACL system comes in.
22
22
23
23
Imagine you are designing a blog system where your users can comment on your
24
24
posts. Now, you want a user to be able to edit their own comments, but not those
25
- of other users; besides, you yourself want to be able to edit all comments. In
25
+ of other users; besides, you want to be able to edit all comments. In
26
26
this scenario, ``Comment `` would be the domain object that you want to
27
27
restrict access to. You could take several approaches to accomplish this using
28
28
Symfony, two basic approaches are (non-exhaustive):
You can’t perform that action at this time.
0 commit comments