Permalink
Browse files

Made the Config object an explicit dependency of the Routing class an…

…d removed potentially damaging accessor methods
  • Loading branch information...
1 parent b0715f0 commit 74d6256993c1b0e7a30d4deeb0fd1d04e0f18c5c craigmarvelley committed Jun 15, 2011
Showing with 1 addition and 19 deletions.
  1. +1 −19 lib/BoxUK/Routing.php
View
@@ -32,25 +32,7 @@ class Routing {
*
* @param \BoxUK\Routing\Config $config
*/
- public function __construct(Config $config = null) {
- $this->config = $config;
- }
-
- /**
- * Returns the configuration object used by the library
- *
- * @return \BoxUK\Routing\Config
- */
- public function getConfig() {
- return $this->config;
- }
-
- /**
- * Sets the configuration object used by the library
- *
- * @param \BoxUK\Routing\Config $config
- */
- public function setConfig(Config $config) {
+ public function __construct( Config $config ) {
$this->config = $config;
}

0 comments on commit 74d6256

Please sign in to comment.