Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/tdr 5/servicemanager init #712

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion common/oatbox/install/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public function setupServiceManager($configPath)
'dir' => $configPath,
'humanReadable' => true
));
$sm = new ServiceManager($configService);
ServiceManager::setServiceManager($sm);

$this->setServiceManager(new ServiceManager($configService));
$this->setServiceLocator($sm);
}

return $this->getServiceManager();
Expand Down
5 changes: 1 addition & 4 deletions common/persistence/sql/SetupDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ class SetupDb implements LoggerAwareInterface
public function setupDatabase(\common_persistence_SqlPersistence $p)
{
$dbalDriver = $p->getDriver();
if (!$dbalDriver instanceof \common_persistence_sql_dbal_Driver) {
throw new \common_exception_InconsistentData('Non DBAL driver no longer supported');
}
$dbName = $dbalDriver->getDataBase();
$dbName = $dbalDriver->getDbalConnection()->getDatabase();
$this->verifyDatabase($p, $dbName);
$this->cleanDb($p);
$this->setupTables($p);
Expand Down
2 changes: 1 addition & 1 deletion helpers/class.File.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static public function emptyDirectory($path, $ignoreSystemFiles = false)
continue;
}

$success = self::remove($path . DIRECTORY_SEPARATOR . $entry) ? $success : false;
$success = self::remove($path . DIRECTORY_SEPARATOR . $entry) && $success;
}
}
closedir($handle);
Expand Down
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'label' => 'Generis Core',
'description' => 'Core extension, provide the low level framework and an API to manage ontologies',
'license' => 'GPL-2.0',
'version' => '12.5.6',
'version' => '12.5.7',
'author' => 'Open Assessment Technologies, CRP Henri Tudor',
'requires' => array(),
'models' => array(
Expand Down
2 changes: 1 addition & 1 deletion scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,6 @@ public function update($initialVersion)
}
$this->setVersion('12.4.1');
}
$this->skip('12.4.1', '12.5.6');
$this->skip('12.4.1', '12.5.7');
}
}