FrDeamon / EnseparHtml2pdfBundle

Html2pdf for Symfony 2 as a service.
MIT License
22 stars 22 forks source link

Error while installing the bundle on Symfony4 #35

Closed 94noni closed 4 years ago

94noni commented 4 years ago

Hello @OwlyCode

when trying to install this bundle on my sf4 project with symfony composer require ensepar/html2pdf-bundle

i got this error:

Using version ^4.0 for ensepar/html2pdf-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.4.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for vdc/vdc dev-master -> satisfiable by vdc/vdc[dev-master].
    - ensepar/html2pdf-bundle v4.0.0 requires symfony/symfony >=2.0 -> satisfiable by symfony/symfony[v4.4.0, v4.4.1].
    - symfony/symfony v4.4.0 conflicts with vdc/vdc[dev-master].
    - symfony/symfony v4.4.1 conflicts with vdc/vdc[dev-master].
    - Installation request for ensepar/html2pdf-bundle ^4.0 -> satisfiable by ensepar/html2pdf-bundle[v4.0.0].

Installation failed, reverting ./composer.json to its original content.
exit status 2

I do not understand this issue and know how can I solve this? Many thanks,


my composer.json:

{
    "name": "vdc/vdc",
    "type": "project",
    "license": "proprietary",
    "require": {
        "php": ">7.2",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "doctrine/doctrine-bundle": "^2.0",
        "doctrine/doctrine-migrations-bundle": "^2.1",
        "doctrine/orm": "^2.7",
        "knplabs/knp-paginator-bundle": "^5.0",
        "sensio/framework-extra-bundle": "^5.5",
        "stof/doctrine-extensions-bundle": "^1.3",
        "symfony/console": "4.4.*",
        "symfony/dotenv": "4.4.*",
        "symfony/flex": "^1.6",
        "symfony/form": "4.4.*",
        "symfony/framework-bundle": "4.4.*",
        "symfony/http-client": "4.4.*",
        "symfony/mailer": "4.4.*",
        "symfony/monolog-bundle": "^3.5",
        "symfony/twig-bundle": "4.4.*",
        "symfony/webpack-encore-bundle": "^1.7",
        "symfony/workflow": "4.4.*",
        "symfony/yaml": "4.4.*",
        "twig/extra-bundle": "^2.12",
        "twig/twig": "^2.12"
    },
    "require-dev": {
        "easycorp/easy-log-handler": "^1.0.7",
        "symfony/browser-kit": "*",
        "symfony/css-selector": "*",
        "symfony/debug-bundle": "*",
        "symfony/maker-bundle": "^1.14",
        "symfony/phpunit-bridge": "*",
        "symfony/profiler-pack": "*",
        "symfony/var-dumper": "*"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
        }
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": true,
            "require": "4.4.*"
        }
    }
}
OwlyCode commented 4 years ago

Hello, sorry for the delay. There was an issue with our composer.json. I just tagged version 4.0.1 that should fix the problem.

noniagriconomie commented 4 years ago

@OwlyCode works fine now 👍

edit: profesional account issue can be closed