-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathLiuggioRackspaceCloudFilesBundle.php
More file actions
34 lines (29 loc) · 1.07 KB
/
LiuggioRackspaceCloudFilesBundle.php
File metadata and controls
34 lines (29 loc) · 1.07 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
<?php
namespace Liuggio\RackspaceCloudFilesBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class LiuggioRackspaceCloudFilesBundle extends Bundle
{
/**
* Boots the Bundle.
*/
public function boot()
{
parent::boot();
$swc = $this->container->getParameter('liuggio_rackspace_cloud_files.stream_wrapper.class');
$swc::$service = $this->container->get('liuggio_rackspace_cloud_files.service');
if($this->container->getParameter('liuggio_rackspace_cloud_files.stream_wrapper.register')) {
$swc::registerStreamWrapperClass($this->container->getParameter('liuggio_rackspace_cloud_files.stream_wrapper.protocol_name'));
}
}
/**
* Shutdowns the Bundle.
*/
public function shutdown()
{
if($this->container->getParameter('liuggio_rackspace_cloud_files.stream_wrapper.register')) {
$swc = $this->container->getParameter('liuggio_rackspace_cloud_files.stream_wrapper.class');
$swc::unRegisterStreamWrapperClass();
}
parent::shutdown();
}
}