Ejemplo n.º 1
0
 /**
  * Enables the facades for the clients defined in the service builder
  *
  * @param string|null $namespace The namespace that the facades should be mounted to. Defaults to global namespace
  *
  * @return Aws
  */
 public function enableFacades($namespace = null)
 {
     Facade::mountFacades($this, $namespace);
     return $this;
 }
Ejemplo n.º 2
0
 public function testCanMountAndUseFacadesToArbitraryNamespaces()
 {
     Facade::mountFacades($this->getServiceBuilder(), 'Foo');
     $this->assertTrue(class_exists('Foo\\S3'));
     $this->assertInstanceOf('Aws\\S3\\Command\\S3Command', \Foo\S3::getCommand('ListBuckets'));
 }