Skip to content

Instantly share code, notes, and snippets.

@simensen
Created January 27, 2010 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simensen/288224 to your computer and use it in GitHub Desktop.
Save simensen/288224 to your computer and use it in GitHub Desktop.
<?php
abstract class s3a_domain_AbstractReposeRepository {
private $sessionFactory;
protected function __construct(repose_SessionFactory $sessionFactory) {
$this->sessionFactory = $sessionFactory;
}
public function getDataSource() {
return $this->getSession()->getDataSource();
}
public function getSession() {
return $this->sessionFactory->getCurrentSession();
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment