File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -238,10 +238,10 @@ MIME types and file name extensions::
238
238
$exts = $mimeTypes->getExtensions('image/jpeg');
239
239
// $exts = ['jpeg', 'jpg', 'jpe']
240
240
241
- $mimeTypes = $mimeTypes->getMimeTypes('js');
242
- // $mimeTypes = ['application/javascript', 'application/x-javascript', 'text/javascript']
243
- $mimeTypes = $mimeTypes->getMimeTypes('apk');
244
- // $mimeTypes = ['application/vnd.android.package-archive']
241
+ $types = $mimeTypes->getMimeTypes('js');
242
+ // $types = ['application/javascript', 'application/x-javascript', 'text/javascript']
243
+ $types = $mimeTypes->getMimeTypes('apk');
244
+ // $types = ['application/vnd.android.package-archive']
245
245
246
246
These methods return arrays with one or more elements. The element position
247
247
indicates its priority, so the first returned extension is the preferred one.
Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ of the ``key`` tag attribute (as defined in the ``index_by`` locator option):
485
485
tags :
486
486
- { name: 'app.handler', key: 'handler_two' }
487
487
488
- App\HandlerCollection :
488
+ App\Handler\ HandlerCollection :
489
489
# inject all services tagged with app.handler as first argument
490
490
arguments : [!tagged_locator { tag: 'app.handler', index_by: 'key' }]
491
491
You can’t perform that action at this time.
0 commit comments