Commit 8180f4b7 authored by mickadoo's avatar mickadoo

68: Fix order of paths

parent 487b0f83
......@@ -24,7 +24,6 @@ services:
publisher:
class: AppBundle\Utils\Publisher
arguments:
- '@request_stack'
- '@publish.logger'
- '@filesystem'
- '@library'
......@@ -35,8 +34,8 @@ services:
paths:
class: AppBundle\Utils\Paths
arguments:
- '%repos_path_root%'
- '%publish_path_root%'
- '%repos_path_root%'
git:
class: AppBundle\Utils\GitTools
......
......@@ -84,7 +84,7 @@ class Publisher {
$this->publishingMessages = [];
$this->addMessage('NOTICE', "PUBLISHING $identifier");
$parts = Library::parseIdentifier($identifier);
$parts = $this->library::parseIdentifier($identifier);
$bookSlug = $parts['bookSlug'];
$languageCode = $parts['languageCode'];
$versionDescriptor = $parts['versionDescriptor'];
......@@ -298,7 +298,7 @@ class Publisher {
* @param string $repoURL
*/
private function initializeRepo($repoPath, $repoURL) {
$repoExists = (bool)$this->fs->exists($repoPath . '/.git');
$repoExists = (bool) $this->fs->exists($repoPath . '/.git');
if ($repoExists) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment