Skip to content

Commit

Permalink
Allow injecting container into Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ludekstepan committed Sep 20, 2012
1 parent 17f4b56 commit 261e94e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/Doctrine/DBAL/Migrations/Configuration/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ class Configuration
*/
private $migrations = array();

/**
* Container-like interface
*
* @var object
*/
private $container;

/**
* Construct a migration configuration object.
*
Expand Down Expand Up @@ -146,6 +153,26 @@ public function getName()
return $this->name;
}

/**
* Set container-like interface
*
* @param object $container
*/
public function setContainer($container)
{
$this->container = $container;
}

/**
* Returns container
*
* @return object
*/
public function getContainer()
{
return $this->container;
}

/**
* Returns the OutputWriter instance
*
Expand Down

0 comments on commit 261e94e

Please sign in to comment.