Skip to content

Commit

Permalink
init v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PawnKaiser committed Jan 22, 2016
1 parent 272be84 commit 0a23c1b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions ThePhalconsAmazonWebServicesBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@
*/
class ThePhalconsAmazonWebServicesBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function boot()
{
if (in_array('s3', $this->container->getParameter('cybernox_amazon_web_services.enable_extensions'))) {
if (in_array('s3', stream_get_wrappers())) {
stream_wrapper_unregister('s3');
}

S3StreamWrapper::register($this->container->get('aws_s3'), 's3');
}
}
//TODO : inject
// /**
// * {@inheritdoc}
// */
// public function boot()
// {
// if (in_array('s3', $this->container->getParameter('cybernox_amazon_web_services.enable_extensions'))) {
// if (in_array('s3', stream_get_wrappers())) {
// stream_wrapper_unregister('s3');
// }
//
// S3StreamWrapper::register($this->container->get('aws_s3'), 's3');
// }
// }
}

0 comments on commit 0a23c1b

Please sign in to comment.