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

Commit 68e02eb

Browse files
committed
updated vendors
1 parent 312bc1d commit 68e02eb

File tree

3 files changed

+41
-22
lines changed

3 files changed

+41
-22
lines changed

app/SymfonyRequirements.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
* It can be a mandatory requirement or an optional recommendation.
1515
* There is a special subclass, named PhpIniRequirement, to check a php.ini configuration.
1616
*
17+
* This file must be compatible with PHP 5.2+.
18+
*
19+
* ************** CAUTION **************
20+
*
21+
* DO NOT EDIT THIS FILE AS IT WILL BE OVERRIDEN BY COMPOSER
22+
*
23+
* If you want to change this file, edit the one in the
24+
* SensioDistributionBundle instead.
25+
*
26+
* ************** CAUTION **************
27+
*
1728
* @author Tobias Schultze <http://tobion.de>
1829
*/
1930
class Requirement
@@ -386,12 +397,18 @@ public function __construct()
386397
);
387398

388399
$this->addRequirement(
389-
is_dir(__DIR__.'/../vendor/symfony'),
400+
is_dir(__DIR__.'/../vendor/composer'),
390401
'Vendor libraries must be installed',
391402
'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. ' .
392403
'Then run "<strong>php composer.phar install</strong>" to install them.'
393404
);
394405

406+
$this->addRequirement(
407+
file_get_contents(__FILE__) == file_get_contents(__DIR__.'/../vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/skeleton/app/SymfonyRequirements.php'),
408+
'Outdated requirements file',
409+
'Your requirements file is outdated. Run composer install and re-check your configuration.'
410+
);
411+
395412
$baseDir = basename(__DIR__);
396413
$this->addRequirement(
397414
is_writable(__DIR__.'/cache'),

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
"post-install-cmd": [
2424
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
2525
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
26-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
26+
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
27+
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
2728
],
2829
"post-update-cmd": [
2930
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
3031
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
31-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
32+
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
33+
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
3234
]
3335
},
3436
"config": {

composer.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)