GithubHelp home page GithubHelp logo

website-skeleton's Issues

The skeleton install stale dependencies by default

By default, stale dependencies are installed, composer update must be executed after the install to fix the problem.

Example:

composer create-project symfony/website-skeleton test-website-skeleton
cd test-website-skeleton
composer info symfony/test-pack
> versions : * v1.0.2
composer update
> snip
> - Updating symfony/test-pack (v1.0.2 => v1.0.3): Loading from cache
> - Updating ocramius/proxy-manager (2.1.1 => 2.2.1): Downloading (100%)

composer create-project aborts with PHP Fatal error: Uncaught Error: Call to a member function getVersions() on null

When creating a new project using composer create-project symfony/website-skeleton my_project_name as per https://symfony.com/doc/current/setup.html I am getting the following error:

root@2ec2e6ed2015:/# composer create-project symfony/website-skeleton my_project_name
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Installing symfony/website-skeleton (v4.3.99)
    Failed to download symfony/website-skeleton from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
  - Installing symfony/website-skeleton (v4.3.99): Cloning b88a14bcaa from cache
Created project in my_project_name
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
    Failed to download symfony/flex from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
  - Installing symfony/flex (v1.4.8): Cloning f5bfc79c1f from cache
Symfony operations: 1 recipe (29b3f51d3d6c7265767b477cce45e405)
  - Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:master
Loading composer repositories with package information
Updating dependencies (including require-dev)
PHP Fatal error:  Uncaught Error: Call to a member function getVersions() on null in /my_project_name/vendor/symfony/flex/src/Cache.php:118
Stack trace:
#0 /my_project_name/vendor/symfony/flex/src/Cache.php(58): Symfony\Flex\Cache->getVersions()
#1 /my_project_name/vendor/symfony/flex/src/TruncatedComposerRepository.php(41): Symfony\Flex\Cache->removeLegacyTags(Array)
#2 /usr/share/php/Composer/Repository/ComposerRepository.php(339): Symfony\Flex\TruncatedComposerRepository->fetchFile('http://packagis...', 'provider-symfon...', '73153d0f92fa8ce...', false)
#3 /my_project_name/vendor/symfony/flex/src/Flex.php(538): Composer\Repository\ComposerRepository->whatProvides(Object(Composer\DependencyResolver\Pool), 'symfony/dotenv', false)
#4 /usr/share/php/Composer/DependencyResolver/Pool.php(204): class@anonymous->whatProvides(Object(Composer\DependencyResolver\Pool), 'symfony/dotenv', false)
#5 /usr/share/php/Composer/DependencyResolver/Pool.php(193): Composer\DependencyResolver\Pool->computeWhatProvides('symfony/dotenv', Object(Co in /my_project_name/vendor/symfony/flex/src/Cache.php on line 118

Something similar happens when running symfony new my_project_namex --full instead:

root@2ec2e6ed2015:/# symfony new my_project_namex --full      
* Creating a new Symfony project with Composer
  (running /usr/bin/composer create-project symfony/website-skeleton my_project_namex)

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Installing symfony/website-skeleton (v4.3.99)
    Failed to download symfony/website-skeleton from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
  - Installing symfony/website-skeleton (v4.3.99): Cloning b88a14bcaa from cache
Created project in my_project_namex
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
    Failed to download symfony/flex from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source
  - Installing symfony/flex (v1.4.8): Cloning f5bfc79c1f from cache
Symfony operations: 1 recipe (aca9ac4c0c32b777b0710c0c1779e9f8)
  - Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:master
Loading composer repositories with package information
Updating dependencies (including require-dev)

In VersionParser.php line 172:
                             
  Invalid version string ""  
                             

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

                                                                                                            
  unable to run /usr/bin/composer create-project symfony/website-skeleton my_project_namex : exit status 1  

How to reproduce:

  • docker run -it ubuntu:18.04 bash
  • apt update && apt install composer wget -y # chosen Europe/Amsterdam as timezone when asked
  • then run either of the above commands

Remove profiler-pack

I see that profiler-pack is include in debug-pack, should he stay in website-skeleton ?

Should it not have `symfony/twig-bundle` somewhere in `require`?

At the moment symfony/twig-bundle is installed via symfony/profiler-pack which only exists in require-dev.

So if you install production with --no-dev then symfony/twig-bundle is not installed yet it's still used (at least for rendering error pages).

UPD: I provided more details to the PR #6

Warning because of the DoctrineCacheBundle recipe during install

  -  WARNING  doctrine/doctrine-cache-bundle (>=1.3): From github.com/symfony/recipes-contrib:master
    The recipe for this package comes from the "contrib" repository, which is open to community contributions.
    Review the recipe at https://github.com/symfony/recipes-contrib/tree/master/doctrine/doctrine-cache-bundle/1.3

    Do you want to execute this recipe?
    [y] Yes
    [n] No
    [a] Yes for all packages, only for the current installation session
    [p] Yes permanently, never ask again for this project
    (defaults to n):

A quick fix would be to move this recipe to the official repository.

Uncaught PHP Exception TypeError if memory_limit is higher than 2047M in PHP 32 bit

Symfony version(s) affected: 5.0.*

Description
Uncaught PHP Exception TypeError: "Return value of Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector::convertToBytes() must be of the type int, float returned" at C:\www\project\vendor\symfony\http-kernel\DataCollector\MemoryDataCollector.php line 120

If the resulting integer is more than PHP_INT_MAX it overflows and ends up as a float.

Maybe need a check like:

if ($max >= PHP_INT_MAX) {
    return PHP_INT_MAX;
}

How to reproduce
Set memory limit higher than 2047M in php.ini in a 32 bit build of PHP.
composer create-project symfony/website-skeleton myproject
cd myproject
symfony server:start

Additional context
My memory limit is set to 3G in php.ini
Windows 10 x64
PHP 7.3.10 (php-7.3.10-Win32-VC15-x86)
Apache/2.4.41 (Win32)

Monolog config issue in prod environment with symfony 3.4

With a project freshly created with composer create-project symfony/website-skeleton my-project there is an issue with the Monolog configuration in prod environment.

When you run a bin/console c:c --env=prod you get:

In MonologExtension.php line 329:
  "excluded_http_codes" cannot be used as your version of Monolog bridge does not support it.

Looking at https://github.com/symfony/monolog-bundle/blob/v3.3.1/DependencyInjection/MonologExtension.php#L328, it seems to be caused by the indirect dependency on symfony/monolog-bridge ^4.1 (looking at the releases, HttpCodeActivationStrategy was introduced in the 4.1.0 version). Since the composer create-project command installed symfony/monolog-brideg 3.4.28, the excluded_http_codes option is not supported.

Installation results in an error related to Doctrine ORM

Running composer create-project symfony/website-skeleton results in:

!!  TypeError {#2824
!!    #message: "Argument 1 passed to Doctrine\ORM\Configuration::setMetadataDriverImpl() must be an instance of Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, instance of Doctrine\Persistence\Mapping\Driver\MappingDriverChain given, called in /var/www/html/test/var/cache/dev/ContainerPivs4xi/App_KernelDevDebugContainer.php on line 835"
!!    #code: 0
!!    #file: "./vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php"
!!    #line: 149
!!    trace: {
!!      ./vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php:149 { …}
!!      ./var/cache/dev/ContainerPivs4xi/App_KernelDevDebugContainer.php:835 {
!!        ContainerPivs4xi\App_KernelDevDebugContainer->getDoctrine_Orm_DefaultEntityManagerService($lazyLoad = true)
!!        › $a->setResultCacheImpl(new \Symfony\Component\Cache\DoctrineProvider(($this->services['cache.doctrine.orm.default.result'] ?? $this->getCache_Doctrine_Orm_Default_ResultService())));
!!        › $a->setMetadataDriverImpl($b);
!!        › $a->setProxyDir(($this->targetDir.''.'/doctrine/orm/Proxies'));
!!        arguments: {
!!          $driverImpl: Doctrine\Persistence\Mapping\Driver\MappingDriverChain {#2775 …}
!!        }
!!      }
!!      ./vendor/symfony/dependency-injection/Container.php:242 { …}
!!      ./vendor/symfony/dependency-injection/Container.php:222 { …}
!!      ./vendor/symfony/doctrine-bridge/ManagerRegistry.php:37 { …}
!!      ./vendor/doctrine/persistence/lib/Doctrine/Persistence/AbstractManagerRegistry.php:204 { …}
!!      ./vendor/symfony/doctrine-bridge/CacheWarmer/ProxyCacheWarmer.php:49 { …}
!!      ./vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php:95 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:577 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:126 { …}
!!      ./vendor/symfony/framework-bundle/Console/Application.php:169 { …}
!!      ./vendor/symfony/framework-bundle/Console/Application.php:75 { …}
!!      ./vendor/symfony/console/Application.php:141 { …}
!!      ./bin/console:42 { …}
!!    }
!!  }
!!  2019-12-13T11:16:32+01:00 [info] User Deprecated: The Doctrine\Common\Persistence\AbstractManagerRegistry class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0. Use \Doctrine\Persistence\AbstractManagerRegistry instead.
!!  2019-12-13T11:16:32+01:00 [info] User Deprecated: The Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0. Use \Doctrine\Persistence\Mapping\Driver\MappingDriverChain instead.
!!  2019-12-13T11:16:32+01:00 [info] User Deprecated: The Doctrine\Common\Persistence\Mapping\ClassMetadata class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0. Use \Doctrine\Persistence\Mapping\ClassMetadata instead.
!!  2019-12-13T11:16:32+01:00 [info] User Deprecated: The Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0. Use \Doctrine\Persistence\Mapping\Driver\AnnotationDriver instead.
!!  2019-12-13T11:16:32+01:00 [critical] Uncaught Error: Argument 1 passed to Doctrine\ORM\Configuration::setMetadataDriverImpl() must be an instance of Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, instance of Doctrine\Persistence\Mapping\Driver\MappingDriverChain given, called in /var/www/html/test/var/cache/dev/ContainerPivs4xi/App_KernelDevDebugContainer.php on line 835
!!  

Unrecognized option "validator" under "framework"

Composer version 1.6.5
linux debian 9.4
PHP 7.2.7-1stretch~1.gbpfd8e2e (cli)

run: composer create-project symfony/website-skeleton my-project

returns error

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  
!!  In ArrayNode.php line 311:
!!                                                       
!!    Unrecognized option "validator" under "framework"  
!!                                                       
!!  
!!  
Script @auto-scripts was called via post-install-cmd

Unable to install symfony/webpack-encore-bundle

Hello. I'm currently facing a requirement problem between symfony/flex and symfony/webpack-encore-bundle. I'm using symfony/website-skeleton 3.4.99, which comes with symfony/flex 1.2.7 and the last version of symfony/webpack-encore-bundle needs it to be at leat 1.3.1. I updated my project using composer update, but it's really problematic I had to do it on fresh project install. Symfony projects need to work together, not against each others...

PS C:\Laragon\www\project> composer require symfony/webpack-encore-bundle
Restricting packages listed in "symfony/symfony" to "3.4.*"
Using version ^1.6 for symfony/webpack-encore-bundle
./composer.json has been updated
Restricting packages listed in "symfony/symfony" to "3.4.*"
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
    - The requested package symfony/flex (locked at v1.2.7, required as ^1.3.1) is satisfiable by symfony/flex[v1.
2.7] but these conflict with your requirements or minimum-stability.


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

EDIT : I know composer.json has symfony/flex ^1.3.1, but composer still install 1.2.7, even after clearing all caches.

{
    "type": "project",
    "license": "proprietary",
    "require": {
        "php": "^7.0.8",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "symfony/flex": "^1.3.1"
    },
    "flex-require": {
        "sensio/framework-extra-bundle": "^5.1",
        "symfony/asset": "*",
        "symfony/console": "*",
        "symfony/dotenv": "*",
        "symfony/expression-language": "*",
        "symfony/form": "*",
        "symfony/framework-bundle": "*",
        "symfony/monolog-bundle": "^3.1",
        "symfony/orm-pack": "*",
        "symfony/process": "*",
        "symfony/security-bundle": "*",
        "symfony/serializer-pack": "*",
        "symfony/swiftmailer-bundle": "^3.1",
        "symfony/translation": "*",
        "symfony/twig-bundle": "*",
        "symfony/validator": "*",
        "symfony/web-link": "*",
        "symfony/yaml": "*"
    },
    "require-dev": {
    },
    "flex-require-dev": {
        "symfony/debug-pack": "*",
        "symfony/maker-bundle": "^1.0",
        "symfony/profiler-pack": "*",
        "symfony/test-pack": "*",
        "symfony/web-server-bundle": "*"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
        }
    },
    "replace": {
        "paragonie/random_compat": "2.*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "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": false,
            "require": "3.4.*"
        }
    }
}
λ  composer create-project symfony/website-skeleton:3.4.* . -vvv

...

Installing symfony/website-skeleton (v3.4.99)
  - Installing symfony/website-skeleton (v3.4.99): Downloading https://api.github.com/repos/symfony/website-skeleton/zipball/ac083f8a5ef1f37356c73c85e41118371d34c44a

...

Extracting archiveCreated project in .
Reading ./composer.json
Loading config file ./composer.json
Failed to initialize global composer: Composer could not find the config file: C:/Users/Alexis/AppData/Roaming/Composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Reading ./composer.lock
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Reading ./composer.lock
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

...

  - Installing symfony/flex (v1.2.7): Downloading https://api.github.com/repos/symfony/flex/zipball/8618b243d44bac71e4006062f245d807d84f7a6c
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/symfony/flex/legacy.zip/8618b243d44bac71e4006062f245d807d84f7a6c
Downloading https://codeload.github.com/symfony/flex/legacy.zip/8618b243d44bac71e4006062f245d807d84f7a6c
Downloading (100%)Writing C:/Users/Alexis/AppData/Local/Composer/files/symfony/flex/eb65a02d56aa2adcabf7569aecbf81f35f68b137.zip into cache from C:\Users\Alexis\Desktop\test\vendor/symfony/flex/437fc61728e0483e82738ec063c3bf6c

 Extracting archiveLoading plugin Symfony\Flex\Flex

EDIT 2: I don't know why there is a composer.lock in branch 3.4, but this is the culprit.

"name": "symfony/flex",
"version": "v1.2.7",
"source": {
    "type": "git",
    "url": "https://github.com/symfony/flex.git",
    "reference": "8618b243d44bac71e4006062f245d807d84f7a6c"
},

Should serializer-pack be changed to serializer ?

I had some incompatibility issues (with phpdocumentor/reflection-docblock) due to the serializer-pack in the composer.json. After removing is and replace it with symfony/serializer the issues went away.

Since symfony/serializer is the component, should that nog be included instead of serializer-pack?

symfony new --version=next for 5.1 dev fails

Symfony 5.1 is just a couple of weeks away, the documentation says to use --version=next, but 5.1.x-dev doesn't exist:

symfony new --version=next --full
* Creating a new Symfony 5.1.x@dev project with Composer
  (running /usr/local/bin/composer create-project symfony/website-skeleton /home/tac/formeo-demo 5.1.x@dev)

Creating a "symfony/website-skeleton" project at "./"

                                                                           
  [InvalidArgumentException]                                               
  Could not find package symfony/website-skeleton with version 5.1.x@dev.  
                                                                           

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

                                                                                                                                
  unable to run /usr/local/bin/composer create-project symfony/website-skeleton /home/tac/formeo-demo 5.1.x@dev: exit status 1  

Creating a new project website-skeleton assets not symbolic linked

When running the installer command to create a new project :
composer create-project symfony/website-skeleton my-project

At the end, the following auto-scripts are created:

        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
        },

Should the asset:install command have the parameters --symlink as marked best practice in a old blog post https://symfony.com/blog/new-in-symfony-2-6-smarter-assets-install-command

symfony new my_project_name --full fails because of composer dependencies

Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "5.2.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/orm-pack[dev-main, v1.0.8, v2.0.0] require doctrine/doctrine-migrations-bundle * -> satisfiable by doctrine/doctrine-migrations-bundle[dev-manager-loader, dev-container-aware-migration-factory, dev-2.2.x-merge-up-into-3.0.x_5f12ade8acaa06.99463690, v1.0.0-beta1, ..., 1.3.x-dev, v2.0.0-alpha1, ..., 2.2.x-dev, 3.0.0-alpha.1, ..., 3.1.x-dev].
    - doctrine/doctrine-migrations-bundle v1.0.0-beta1 requires symfony/symfony >=2.0 -> satisfiable by symfony/symfony[v5.2.0-BETA1, ..., 5.2.x-dev].
    - symfony/orm-pack[v1.1.0, ..., v1.2.0] require doctrine/doctrine-migrations-bundle ^2 -> satisfiable by doctrine/doctrine-migrations-bundle[v2.0.0-alpha1, ..., 2.2.x-dev].
    - symfony/website-skeleton 1.0.0+no-version-set conflicts with symfony/symfony v5.2.0.
    - symfony/website-skeleton 1.0.0+no-version-set conflicts with symfony/symfony v5.2.0-RC2.
    - symfony/website-skeleton 1.0.0+no-version-set conflicts with symfony/symfony v5.2.0-RC1.
    - symfony/website-skeleton 1.0.0+no-version-set conflicts with symfony/symfony v5.2.0-BETA3.
    - symfony/website-skeleton 1.0.0+no-version-set conflicts with symfony/symfony v5.2.0-BETA2.
    - symfony/website-skeleton 1.0.0+no-version-set conflicts with symfony/symfony v5.2.0-BETA1.
    - symfony/website-skeleton 1.0.0+no-version-set conflicts with symfony/symfony 5.2.x-dev.
    - symfony/orm-pack[v1.0.0, ..., v1.0.7] require php ^7.0 -> your php version (8.0.0) does not satisfy that requirement.
    - doctrine/doctrine-migrations-bundle[dev-2.2.x-merge-up-into-3.0.x_5f12ade8acaa06.99463690, v2.0.0-alpha1, ..., 2.2.x-dev] require php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.
    - doctrine/doctrine-migrations-bundle[dev-manager-loader, dev-container-aware-migration-factory, 3.0.0-alpha.1, ..., 3.1.x-dev] require php ^7.2 -> your php version (8.0.0) does not satisfy that requirement.
    - doctrine/doctrine-migrations-bundle[1.0.x-dev, ..., 1.3.x-dev] require symfony/framework-bundle ~2.7|~3.3|~4.0 -> found symfony/framework-bundle[v2.7.0-BETA1, ..., 2.8.x-dev, v3.3.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - doctrine/doctrine-migrations-bundle[1.0.1, ..., 1.2.x-dev] require symfony/framework-bundle ~2.3|~3.0 -> found symfony/framework-bundle[v2.3.0, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - doctrine/doctrine-migrations-bundle[1.0.0-BETA2, ..., 1.0.0] require symfony/framework-bundle ~2.1 -> found symfony/framework-bundle[v2.1.0, ..., 2.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - symfony/website-skeleton is present at version 1.0.0+no-version-set and cannot be modified by Composer
    - Root composer.json requires symfony/orm-pack * -> satisfiable by symfony/orm-pack[dev-main, v1.0.0, ..., v1.2.0, v2.0.0].

No bin folder created when running composer create-project symfony/website-skeleton

Hello,

I created a new project with the command composer create-project symfony/website-skeleton but the installation fails (bin directory does not get created) :

Script cache:clear returned with error code 1
Could not open input file: ./bin/console

I tried with the command composer create-project symfony/skeleton and it works.

Then I copied the bin directory to the project created with symfony/website-skeleton but I still get an error :

The parameter "doctrine_migrations.dir_name" has a dependency on a non-existent parameter "kernel.root_dir". 
Did you mean one of these: "kernel.project_dir", "kernel.cache_dir", "kernel.logs_dir"?     

I'm using PHP 7.3.9.

Error during installation of Version 3.4 with PHP 7.3

During the installation of version 3.4 with PHP 7.3 an error occurs (no problem with PHP 7.2):

$ php73 ./composer create-project symfony/website-skeleton:~3.4.0 my_project
Installing symfony/website-skeleton (v3.4.28.6)
  - Installing symfony/website-skeleton (v3.4.28.6): Loading from cache
Created project in my_project
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 92 installs, 0 updates, 0 removals
  - Installing ocramius/package-versions (1.2.0): Loading from cache
  - Installing symfony/flex (v1.2.7): Loading from cache
Restricting packages listed in "symfony/symfony" to "3.4.*"
  - Installing doctrine/collections (v1.4.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.11.0): Loading from cache
  - Installing doctrine/lexer (1.0.2): Loading from cache
  - Installing doctrine/inflector (v1.2.0): Loading from cache
  - Installing doctrine/cache (v1.6.2): Loading from cache
  - Installing doctrine/annotations (v1.4.0): Loading from cache
  - Installing doctrine/common (v2.7.3): Loading from cache
  - Installing symfony/doctrine-bridge (v3.4.28): Loading from cache
  - Installing doctrine/doctrine-cache-bundle (1.3.5): Loading from cache
  - Installing doctrine/instantiator (1.0.5): Loading from cache
  - Installing symfony/yaml (v3.4.28): Loading from cache
  - Installing psr/log (1.1.0): Loading from cache
  - Installing symfony/debug (v3.4.28): Loading from cache
  - Installing symfony/console (v3.4.28): Loading from cache
  - Installing zendframework/zend-eventmanager (3.2.1): Loading from cache
  - Installing zendframework/zend-code (3.1.0): Loading from cache
  - Installing ocramius/proxy-manager (2.0.4): Loading from cache
  - Installing doctrine/dbal (v2.5.13): Loading from cache
  - Installing doctrine/migrations (v1.5.0): Loading from cache
  - Installing egulias/email-validator (2.1.8): Loading from cache
  - Installing jdorn/sql-formatter (v1.2.17): Loading from cache
  - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing psr/simple-cache (1.0.1): Loading from cache
  - Installing symfony/http-foundation (v3.4.28): Loading from cache
  - Installing symfony/event-dispatcher (v3.4.28): Loading from cache
  - Installing symfony/http-kernel (v3.4.28): Loading from cache
  - Installing symfony/routing (v3.4.28): Loading from cache
  - Installing symfony/finder (v3.4.28): Loading from cache
  - Installing symfony/filesystem (v3.4.28): Loading from cache
  - Installing symfony/dependency-injection (v3.4.28): Loading from cache
  - Installing symfony/config (v3.4.28): Loading from cache
  - Installing symfony/class-loader (v3.4.28): Loading from cache
  - Installing symfony/polyfill-apcu (v1.11.0): Loading from cache
  - Installing symfony/cache (v3.4.28): Loading from cache
  - Installing symfony/framework-bundle (v3.4.28): Loading from cache
  - Installing sensio/framework-extra-bundle (v5.2.4): Loading from cache
  - Installing symfony/asset (v3.4.28): Loading from cache
  - Installing symfony/dotenv (v3.4.28): Loading from cache
  - Installing symfony/expression-language (v3.4.28): Loading from cache
  - Installing symfony/inflector (v3.4.28): Loading from cache
  - Installing symfony/property-access (v3.4.28): Loading from cache
  - Installing symfony/options-resolver (v3.4.28): Loading from cache
  - Installing symfony/intl (v3.4.28): Loading from cache
  - Installing symfony/polyfill-intl-icu (v1.11.0): Loading from cache
  - Installing symfony/form (v3.4.28): Loading from cache
  - Installing monolog/monolog (1.24.0): Loading from cache
  - Installing symfony/monolog-bridge (v3.4.28): Loading from cache
  - Installing doctrine/orm (v2.5.14): Loading from cache
  - Installing doctrine/doctrine-bundle (1.10.3): Loading from cache
  - Installing doctrine/doctrine-migrations-bundle (v1.3.2): Loading from cache
  - Installing symfony/orm-pack (v1.0.6): Loading from cache
  - Installing symfony/polyfill-php72 (v1.11.0): Loading from cache
  - Installing symfony/polyfill-intl-idn (v1.11.0): Loading from cache
  - Installing symfony/security (v3.4.28): Loading from cache
  - Installing symfony/security-bundle (v3.4.28): Loading from cache
  - Installing symfony/serializer (v3.4.28): Loading from cache
  - Installing symfony/property-info (v3.4.28): Loading from cache
  - Installing webmozart/assert (1.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (4.3.1): Loading from cache
  - Installing symfony/serializer-pack (v1.0.2): Loading from cache
  - Installing swiftmailer/swiftmailer (v6.2.1): Loading from cache
  - Installing symfony/swiftmailer-bundle (v3.2.7): Loading from cache
  - Installing symfony/translation (v3.4.28): Loading from cache
  - Installing symfony/validator (v3.4.28): Loading from cache
  - Installing psr/link (1.0.0): Loading from cache
  - Installing fig/link-util (1.0.0): Loading from cache
  - Installing symfony/web-link (v3.4.28): Loading from cache
  - Installing symfony/var-dumper (v3.4.28): Loading from cache
  - Installing twig/twig (v2.11.2): Loading from cache
  - Installing symfony/twig-bridge (v3.4.28): Loading from cache
  - Installing symfony/web-profiler-bundle (v3.4.28): Loading from cache
  - Installing symfony/twig-bundle (v3.4.28): Loading from cache
  - Installing symfony/stopwatch (v3.4.28): Loading from cache
  - Installing symfony/profiler-pack (v1.0.4): Loading from cache
  - Installing symfony/monolog-bundle (v3.3.1): Loading from cache
  - Installing symfony/debug-bundle (v3.4.28): Loading from cache
  - Installing easycorp/easy-log-handler (v1.0.7): Loading from cache
  - Installing symfony/debug-pack (v1.0.7): Loading from cache
  - Installing symfony/dom-crawler (v3.4.28): Loading from cache
  - Installing nikic/php-parser (v4.2.2): Loading from cache
  - Installing symfony/maker-bundle (v1.11.6): Loading from cache
  - Installing symfony/phpunit-bridge (v4.3.1): Loading from cache
  - Installing symfony/css-selector (v3.4.28): Loading from cache
  - Installing symfony/browser-kit (v3.4.28): Loading from cache
  - Installing symfony/test-pack (v1.0.2): Loading from cache
  - Installing symfony/process (v3.4.28): Loading from cache
  - Installing symfony/web-server-bundle (v3.4.28): Loading from cache
Generating autoload files
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
Symfony operations: 20 recipes (a9949a28e9aa94b43f734b4dfd7e419f)
  - Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:master
  - Configuring symfony/framework-bundle (>=3.3): From github.com/symfony/recipes:master
  - Configuring doctrine/annotations (>=1.0): From github.com/symfony/recipes:master
  - Configuring doctrine/doctrine-cache-bundle (>=1.3.5): From auto-generated recipe
  - Configuring symfony/console (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/routing (>=3.3): From github.com/symfony/recipes:master
  - Configuring sensio/framework-extra-bundle (>=5.2): From github.com/symfony/recipes:master
  - Configuring doctrine/doctrine-bundle (>=1.6): From github.com/symfony/recipes:master
  - Configuring doctrine/doctrine-migrations-bundle (>=1.2): From github.com/symfony/recipes:master
  - Configuring symfony/security-bundle (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/swiftmailer-bundle (>=2.5): From github.com/symfony/recipes:master
  - Configuring symfony/translation (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/web-profiler-bundle (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/twig-bundle (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/monolog-bundle (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/debug-bundle (>=3.3): From github.com/symfony/recipes:master
  - Configuring easycorp/easy-log-handler (>=1.0): From github.com/symfony/recipes:master
  - Configuring symfony/maker-bundle (>=1.0): From github.com/symfony/recipes:master
  - Configuring symfony/phpunit-bridge (>=4.3): From github.com/symfony/recipes:master
  - Configuring symfony/web-server-bundle (>=3.3): From github.com/symfony/recipes:master
Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!  In UnitOfWork.php line 2636:
!!
!!    Warning: "continue" targeting switch is equivalent to "break". Did you mean
!!     to use "continue 2"?
!!
!!
!!
Script @auto-scripts was called via post-install-cmd

Warning: Ambiguous class resolution

Hi, I'm not sure if it's the right place to set this issue, please tell me if I'm wrong.

After installing
composer create-project symfony/website-skeleton my-project

then dump autoload
composer dump-autoload -o

I get those warnings about contracts (full warnings in file
warning.log
) :

Warning: Ambiguous class resolution, "Symfony\Contracts\HttpClient\ResponseStreamInterface" was found in both "/var/www/ffcc/vendor/symfony/http-client-contracts/ResponseStreamInterface.php" and "/var/www/ffcc/vendor/symfony/contracts/HttpClient/ResponseStreamInterface.php", the first will be used.

Creating a new project does not work

hi,

few days ago i managed to create a new project, like so:
composer create-project symfony/website-skeleton zoho-client

now in the exact same environment i am not able to create a new project anymore:
composer create-project symfony/website-skeleton klantportaal
Installing symfony/website-skeleton (v4.2.4.4)

  • Installing symfony/website-skeleton (v4.2.4.4): Loading from cache
    Created project in klantportaal
    Loading composer repositories with package information
    Installing dependencies (including require-dev) from lock file
    Package operations: 100 installs, 0 updates, 0 removals
  • Installing ocramius/package-versions (1.4.0): Loading from cache
  • Installing symfony/flex (v1.2.0): Loading from cache
    PHP Fatal error: Cannot declare class Symfony\Flex\Options, because the name is already in use in /var/www/klantportaal/vendor/symfony/flex/src/Options.php on line 20

Fatal error: Cannot declare class Symfony\Flex\Options, because the name is already in use in /var/www/klantportaal/vendor/symfony/flex/src/Options.php on line 20

am i doing something wrong? or did this start since we went to Symfony 4.2.5?

thanks,
Noud

After installation, the debug toolbar does not work

After I tried tu run the application created via:

composer create-project symfony/website-skeleton my-project

I got some issues on the welcome page:

image

When I click on the "open profiler" link in the toolbar, I get plain 404 error page.
Running on PHP Version 7.2.6 with all settings okayed by the checker:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.