Skip to content

Commit 7cdca13

Browse files
author
Jamie Hannaford
committed
Add clarity about CDN containers
1 parent c683d83 commit 7cdca13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/services/object-store/cdn.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ Once a container has been CDN-enabled, you can retrieve it like so:
7171
7272
$cdnContainer = $cdnService->cdnContainer('{containerName}');
7373
74+
If you already have a container object and want to avoid instantiating a new service, you can also do:
75+
76+
.. code-block:: php
77+
78+
$cdnContainer = $container->getCdn();
79+
7480
7581
Retrieve the SSL URL of a CDN container
7682
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)