Skip to content

Instantly share code, notes, and snippets.

@c33s
Last active March 31, 2016 10:50
Show Gist options
  • Save c33s/2f238ed200b4ea2e3d3da87c512f2597 to your computer and use it in GitHub Desktop.
Save c33s/2f238ed200b4ea2e3d3da87c512f2597 to your computer and use it in GitHub Desktop.
filesytem.php
λ composer update
creating backup of json file
converting to json
The "franzl/studio" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/filesystem 3.1.x-dev requires php >=5.5.9 -> your PHP version (5.6.17) overriden by "config.platform.php" version (5.3.9) does not satisfy that requirement.
- symfony/filesystem 3.1.x-dev requires php >=5.5.9 -> your PHP version (5.6.17) overriden by "config.platform.php" version (5.3.9) does not satisfy that requirement.
- symfony/filesystem 3.0.x-dev requires php >=5.5.9 -> your PHP version (5.6.17) overriden by "config.platform.php" version (5.3.9) does not satisfy that requirement.
- symfony/filesystem 3.0.x-dev requires php >=5.5.9 -> your PHP version (5.6.17) overriden by "config.platform.php" version (5.3.9) does not satisfy that requirement.
- sensio/distribution-bundle v5.0.5 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.4 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.3 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.2 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.1 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.0 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.5 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- Can only install one of: symfony/filesystem[2.3.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.4.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.5.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.6.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.7.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.8.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.3.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.4.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.5.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.6.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.7.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.8.x-dev, dev-c33s-fs-win-symlink].
- Installation request for symfony/filesystem dev-c33s-fs-win-symlink -> satisfiable by symfony/filesystem[dev-c33s-fs-win-symlink].
- Installation request for sensio/distribution-bundle ~5.0 -> satisfiable by sensio/distribution-bundle[v5.0.0, v5.0.1, v5.0.2, v5.0.3, v5.0.4, v5.0.5].
λ composer update
creating backup of json file
converting to json
The "franzl/studio" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sensio/distribution-bundle v5.0.5 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.0 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.1 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.2 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.3 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.4 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- sensio/distribution-bundle v5.0.5 requires symfony/filesystem ~2.3|~3.0 -> satisfiable by symfony/filesystem[3.1.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev].
- Can only install one of: symfony/filesystem[2.3.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.4.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.5.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.6.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.7.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.8.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.3.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.4.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.5.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.6.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.7.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[2.8.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[3.0.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[3.0.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[3.1.x-dev, dev-c33s-fs-win-symlink].
- Can only install one of: symfony/filesystem[3.1.x-dev, dev-c33s-fs-win-symlink].
- Installation request for symfony/filesystem dev-c33s-fs-win-symlink -> satisfiable by symfony/filesystem[dev-c33s-fs-win-symlink].
- Installation request for sensio/distribution-bundle ~5.0 -> satisfiable by sensio/distribution-bundle[v5.0.0, v5.0.1, v5.0.2, v5.0.3, v5.0.4, v5.0.5].
name: symfony/framework-standard-edition
license: MIT
type: project
description: 'The "Symfony Standard Edition" distribution'
repositories:
-
type: vcs
url: 'https://github.com/c33s/filesystem'
autoload:
psr-4: { '': src/ }
classmap: [app/AppKernel.php, app/AppCache.php]
require:
php: '>=5.3.9'
symfony/symfony: '2.8.*'
doctrine/orm: ^2.4.8
doctrine/doctrine-bundle: ~1.4
symfony/swiftmailer-bundle: ~2.3
symfony/monolog-bundle: ~2.4
sensio/distribution-bundle: ~5.0
sensio/framework-extra-bundle: ^3.0.2
incenteev/composer-parameter-handler: ~2.0
symfony/filesystem: dev-c33s-fs-win-symlink
require-dev:
sensio/generator-bundle: ~3.0
symfony/phpunit-bridge: ~2.7
scripts:
post-install-cmd: ['Incenteev\ParameterHandler\ScriptHandler::buildParameters', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget']
post-update-cmd: ['Incenteev\ParameterHandler\ScriptHandler::buildParameters', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile', 'Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget']
config:
bin-dir: bin
platform: { php: 5.3.9 }
extra:
symfony-app-dir: app
symfony-web-dir: web
symfony-assets-install: relative
incenteev-parameters: { file: app/config/parameters.yml }
branch-alias: { dev-master: 2.8-dev }
<?php
protected function existsMklinkExecutable()
{
if ($this->getMklinkExecutable()) {
return true;
}
return false;
}
protected function getMklinkExecutable()
{
//$executableFinder = new ExecutableFinder();
//$executableFinder->find('mklink');
$cmd = 'mklink';
return $cmd;
}
protected function createWindowsJunction($originDir, $targetDir)
{
$linker = $this->getMklinkExecutable();
$targetBaseDir = dirname($targetDir);
$linkName = basename($targetDir);
$process = new Process("cd $targetBaseDir && $linker /J /D \"$linkName\" \"$originDir\"");
$process
->setTimeout(null)
->run(function ($type, $buffer) {
echo '> '.$buffer;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment