Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on fresh install #11

Open
rowan-m opened this issue Jul 20, 2020 · 2 comments
Open

Error on fresh install #11

rowan-m opened this issue Jul 20, 2020 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rowan-m
Copy link
Collaborator

rowan-m commented Jul 20, 2020

Created a new Symfony project via:

symfony new ise_bundle_test --full

Added the following to composer.json

{
    "require": {
        "ise/web-security-bundle": "dev-main"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/GoogleChromeLabs/IseWebSecurityBundle.git"
        }
    ]
}

Then run:

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)         
Restricting packages listed in "symfony/symfony" to "5.1.*"
Package operations: 1 install, 0 updates, 0 removals
  - Installing ise/web-security-bundle (dev-main e09141b): Downloading (100%)         
Writing lock file
Generating optimized autoload files
Deprecation Notice: Class Ise\WebSecurityBundle\Tests\IseWebSecurityFetchMetaTest located in ./vendor/ise/web-security-bundle/tests/RequestSubscriberTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/rowan/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
84 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Symfony operations: 1 recipe (de0b1b118c4285a123651ecd0d43296d)
  - Configuring ise/web-security-bundle (>=dev-main): From auto-generated recipe
Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  
!!  In IseWebSecurityExtension.php line 18:
!!                                   
!!    Notice: Undefined index: coop  
!!                                   
!!  
!!  
Script @auto-scripts was called via post-update-cmd
@rowan-m rowan-m added the bug Something isn't working label Jul 20, 2020
@rowan-m
Copy link
Collaborator Author

rowan-m commented Jul 20, 2020

Workaround as discussed!

Create config/packages/ise_web_security.yaml:

ise_web_security:
    coop: true
    fetch_metadata:
        active: true

Then run composer update.

@henrym2 henrym2 added this to the MVP milestone Jul 28, 2020
@henrym2
Copy link
Collaborator

henrym2 commented Jul 28, 2020

Will be resolved by #13

@henrym2 henrym2 moved this from To do to In progress in Ise web security bundle Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Ise web security bundle
  
In progress
Development

No branches or pull requests

2 participants