Phrozn\Registry\Container::getDao PHP Method

getDao() public method

Get DAO.
public getDao ( ) : Phrozn\Has\Dao
return Phrozn\Has\Dao
    public function getDao()
    {
        return $this->dao;
    }

Usage Example

Example #1
0
 /**
  * Get registry container
  *
  * @return \Phrozn\Registry\Container
  */
 public function getRegistryContainer()
 {
     if (null === $this->registryContainer) {
         $dao = new RegistryDao();
         $dao->setProjectPath($this->getProjectPath())->setOutputFile('.bundles');
         $this->registryContainer = new RegistryContainer($dao);
         $this->registryContainer->read();
         //(re)read container values
     } else {
         // update project path
         $this->registryContainer->getDao()->setProjectPath($this->getProjectPath());
     }
     return $this->registryContainer;
 }
All Usage Examples Of Phrozn\Registry\Container::getDao