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:
6464 ; php.ini
6565 opcache.max_accelerated_files = 20000
6666
67- .. index ::
68- single: Performance; Autoloader
69-
7067 Configure the PHP realpath Cache
7168--------------------------------
7269
@@ -86,6 +83,9 @@ value too using the ``realpath_cache_ttl`` option:
8683 realpath_cache_size =4096K
8784 realpath_cache_ttl =600
8885
86+ .. index ::
87+ single: Performance; Autoloader
88+
8989Use Composer's Class Map Functionality
9090--------------------------------------
9191
@@ -105,7 +105,7 @@ in ``vendor/composer/autoload_classmap.php``.
105105The class map can be generated from the command line, and might become part of
106106your deploy process:
107107
108- .. code-block :: terminal
108+ .. code-block :: bash
109109
110110 $ composer dump-autoload --optimize --no-dev --classmap-authoritative
111111
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ Full Default Configuration
203203 password =" secret"
204204 driver =" pdo_mysql"
205205 driver-class =" MyNamespace\MyDriverImpl"
206- path =" %kernel.data_dir% /data.sqlite"
206+ path =" %kernel.root_dir%/../var/data /data.sqlite"
207207 memory =" true"
208208 unix-socket =" /tmp/mysql.sock"
209209 wrapper-class =" MyDoctrineDbalConnectionWrapper"
@@ -395,7 +395,7 @@ The following block shows all possible configuration keys:
395395 # the DBAL driverOptions option
396396 options :
397397 foo : bar
398- path : ' %kernel.data_dir% /data.sqlite'
398+ path : ' %kernel.root_dir%/data /data.sqlite'
399399 memory : true
400400 unix_socket : /tmp/mysql.sock
401401 # the DBAL wrapperClass option
@@ -431,7 +431,7 @@ The following block shows all possible configuration keys:
431431 password =" secret"
432432 driver =" pdo_mysql"
433433 driver-class =" MyNamespace\MyDriverImpl"
434- path =" %kernel.data_dir% /data.sqlite"
434+ path =" %kernel.root_dir%/../var/data /data.sqlite"
435435 memory =" true"
436436 unix-socket =" /tmp/mysql.sock"
437437 wrapper-class =" MyDoctrineDbalConnectionWrapper"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ the ACL system comes in.
2222
2323Imagine you are designing a blog system where your users can comment on your
2424posts. 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
2626this scenario, ``Comment `` would be the domain object that you want to
2727restrict access to. You could take several approaches to accomplish this using
2828Symfony, two basic approaches are (non-exhaustive):
You can’t perform that action at this time.
0 commit comments