Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit a0d4ee3

Browse files
committed
updated VENDORS for 2.5.1
1 parent a45aeef commit a0d4ee3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/SymfonyRequirements.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -409,18 +409,20 @@ public function __construct()
409409
'Then run "<strong>php composer.phar install</strong>" to install them.'
410410
);
411411

412-
$baseDir = basename(__DIR__);
412+
$cacheDir = is_dir(__DIR__.'/../var/cache') ? __DIR__.'/../var/cache' : __DIR__.'/cache';
413413

414414
$this->addRequirement(
415-
is_writable(__DIR__.'/cache'),
416-
"$baseDir/cache/ directory must be writable",
417-
"Change the permissions of the \"<strong>$baseDir/cache/</strong>\" directory so that the web server can write into it."
415+
is_writable($cacheDir),
416+
'app/cache/ or var/cache/ directory must be writable',
417+
'Change the permissions of either "<strong>app/cache/</strong>" or "<strong>var/cache/</strong>" directory so that the web server can write into it.'
418418
);
419419

420+
$logsDir = is_dir(__DIR__.'/../var/logs') ? __DIR__.'/../var/logs' : __DIR__.'/logs';
421+
420422
$this->addRequirement(
421-
is_writable(__DIR__.'/logs'),
422-
"$baseDir/logs/ directory must be writable",
423-
"Change the permissions of the \"<strong>$baseDir/logs/</strong>\" directory so that the web server can write into it."
423+
is_writable($logsDir),
424+
'app/logs/ or var/logs/ directory must be writable',
425+
'Change the permissions of either "<strong>app/logs/</strong>" or "<strong>var/logs/</strong>" directory so that the web server can write into it.'
424426
);
425427

426428
$this->addPhpIniRequirement(

0 commit comments

Comments
 (0)