Permalink
Browse files

changing namespace with caps

  • Loading branch information...
1 parent 576e9a3 commit 1c58ea24504479a34afe918c61278e17ec940243 @harikt harikt committed Jun 11, 2011
View
@@ -3,9 +3,9 @@
* Dependency services.
*/
$di->set('signal_manager', function() use ($di) {
- return $di->newInstance('aura\signal\Manager', array(
- 'handler_factory' => $di->newInstance('aura\signal\HandlerFactory'),
- 'result_factory' => $di->newInstance('aura\signal\ResultFactory'),
- 'result_collection' => new aura\signal\ResultCollection, // newInstance() fails with ArrayObject ?
+ return $di->newInstance('Aura\Signal\Manager', array(
+ 'handler_factory' => $di->newInstance('Aura\Signal\HandlerFactory'),
+ 'result_factory' => $di->newInstance('Aura\Signal\ResultFactory'),
+ 'result_collection' => new Aura\Signal\ResultCollection, // newInstance() fails with ArrayObject ?
));
});
View
@@ -1,4 +1,4 @@
<?php
-namespace aura\signal;
+namespace Aura\Signal;
require dirname(__DIR__) . '/src.php';
return new Manager(new HandlerFactory, new ResultFactory, new ResultCollection);
View
@@ -6,13 +6,13 @@
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
-namespace aura\signal;
+namespace Aura\Signal;
/**
*
* Generic package exception.
*
- * @package aura.signal
+ * @package Aura.Signal
*
*/
class Exception extends \Exception {}
View
@@ -6,13 +6,13 @@
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
-namespace aura\signal;
+namespace Aura\Signal;
/**
*
* A signal Handler definition.
*
- * @package aura.signal
+ * @package Aura.Signal
*
*/
class Handler
View
@@ -6,13 +6,13 @@
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
-namespace aura\signal;
+namespace Aura\Signal;
/**
*
* A factory to create Handler objects.
*
- * @package aura.signal
+ * @package Aura.Signal
*
*/
class HandlerFactory
View
@@ -6,13 +6,13 @@
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
-namespace aura\signal;
+namespace Aura\Signal;
/**
*
* Processes signals through to Handler objects.
*
- * @package aura.signal
+ * @package Aura.Signal
*
*/
class Manager
@@ -24,7 +24,7 @@ class Manager
* @const string
*
*/
- const STOP = 'aura\signal\Manager::STOP';
+ const STOP = 'Aura\Signal\Manager::STOP';
/**
*
View
@@ -6,13 +6,13 @@
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
-namespace aura\signal;
+namespace Aura\Signal;
/**
*
* Represents a Result from a Handler.
*
- * @package aura.signal
+ * @package Aura.Signal
*
*/
class Result
View
@@ -6,13 +6,13 @@
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
-namespace aura\signal;
+namespace Aura\Signal;
/**
*
* Represents a collection of Result objects.
*
- * @package aura.signal
+ * @package Aura.Signal
*
*/
class ResultCollection extends \ArrayObject
View
@@ -6,13 +6,13 @@
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
-namespace aura\signal;
+namespace Aura\Signal;
/**
*
* A factory to create Result objects.
*
- * @package aura.signal
+ * @package Aura.Signal
*
*/
class ResultFactory
View
@@ -1,5 +1,5 @@
<?php
-namespace aura\signal;
+namespace Aura\Signal;
/**
* Test class for Handler.
View
@@ -1,5 +1,5 @@
<?php
-namespace aura\signal;
+namespace Aura\Signal;
/**
* Test class for Manager.
@@ -1,5 +1,5 @@
<?php
-namespace aura\signal;
+namespace Aura\Signal;
/**
* Test class for ResultCollection.
View
@@ -1,5 +1,5 @@
<?php
-namespace aura\signal;
+namespace Aura\Signal;
/**
* Test class for Result.
@@ -48,7 +48,7 @@ public function testResult()
'value' => $value,
));
- $this->assertType('aura\signal\Result', $result);
+ $this->assertType('Aura\Signal\Result', $result);
$this->assertSame($result->origin, $origin);
$this->assertSame($result->sender, $sender);
$this->assertSame($result->signal, $signal);

0 comments on commit 1c58ea2

Please sign in to comment.