The EscapeRackspaceCloudFiles bundle is a simple and easy way to use the namespaced version of php-cloudfiles with Symfony2 applications
app/autoload.php
$loader->registerNamespaces(array(
//other namespaces
'Escape' => __DIR__.'/../vendor/bundles',
));
app/AppKernel.php
public function registerBundles()
{
return array(
//other bundles
new Escape\WSSEAuthenticationBundle\EscapeWSSEAuthenticationBundle(),
);
...
app/config/config.yml
# Escape Rackspace Cloud Files configuration
escape_wsse_authentication:
provider_class: Escape\WSSEAuthenticationBundle\Security\Authentication\Provider\Provider
listener_class: Escape\WSSEAuthenticationBundle\Security\Firewall\Listener
factory_class: Escape\WSSEAuthenticationBundle\Security\Factory\WSSEFactory
app/config/security.yml
nonce_dir: location where nonces will be saved (use null to skip nonce-validation) lifetime: lifetime of nonce
firewalls:
wsse_secured:
pattern: ^/api/.*
wsse: { nonce_dir: null, lifetime: 300 }
factories:
- "%kernel.root_dir%/../vendor/bundles/Escape/WSSEAuthenticationBundle/Resources/config/security_factories.yml"