Skip to content

Commit 1cd17aa

Browse files
committed
Fix output directory
1 parent 4cd4378 commit 1cd17aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Jade/JadeSymfonyEngine.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ public function __construct($kernel)
3232
$this->container = $container;
3333
$environment = $container->getParameter('kernel.environment');
3434
$appDir = $container->getParameter('kernel.root_dir');
35+
$rootDir = dirname($appDir);
3536
$assetsDirectories = array($appDir . '/Resources/assets');
36-
$srcDir = dirname($appDir) . '/src';
37+
$srcDir = $rootDir . '/src';
38+
$webDir = $rootDir . '/web';
3739
$baseDir = null;
3840
foreach (scandir($srcDir) as $directory) {
3941
if (is_null($baseDir) && is_dir($srcDir . '/Resources/views')) {
@@ -50,7 +52,7 @@ public function __construct($kernel)
5052
'cache' => substr($environment, 0, 3) === 'dev' ? false : $cache,
5153
'environment' => $environment,
5254
'extension' => array('.pug', '.jade'),
53-
'outputDirectory' => __DIR__ . '/../../../web',
55+
'outputDirectory' => $webDir,
5456
'preRender' => array($this, 'preRender'),
5557
'prettyprint' => $kernel->isDebug(),
5658
));

0 commit comments

Comments
 (0)