Git Product home page Git Product logo

symfony's Introduction

Symfony Lando Plugin

This is the official Lando plugin for Symfony. When installed it...

  • Allows users to run a symfony app
  • Allows users to configure php version from 5.3 all the way to 8.1
  • Allows users to configure webroot
  • Allows users to configure web server to (apache or nginx)
  • Allows users to configure database backend to (mariadb, mysql, or postgres)
  • Allows users to configure composer
  • Allows users to configure a caching backend (redis or memcached)
  • Allows users to configure xdebug

Of course, once a user is running their Symfony project with Lando they can take advantage of all the other awesome development features Lando provides.

Basic Usage

Add a symfony recipe to your Landofile

name: symfony-app
recipe: symfony

For more info you should check out the docs:

Issues, Questions and Support

If you have a question or would like some community support we recommend you join us on Slack.

If you'd like to report a bug or submit a feature request then please use the issue queue in this repo.

Changelog

We try to log all changes big and small in both THE CHANGELOG and the release notes.

Maintainers

Contributors

Made with contributors-img.

Other Selected Resources

symfony's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar pirog avatar reynoldsalec avatar rtfm-47 avatar uberhacker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

symfony's Issues

File permissions on cache/var folder

OS: macOS Monterey
Symfony: 6.2.5
meUser: 'www-data',
PHP: 8.2.1
lando: v3.9.0

From time to time the permissions on log/cache changed to root

drwxr-xr-x  3 root     root       96 Feb  1 08:38 cache
drwxr-xr-x  2 root     root       64 Feb  1 08:38 log

If that happens running tests as example gives a RuntimeException

RuntimeException: Unable to write in the "cache" directory (/app/var/cache/test).

deleting the folders and run the test again works -> file permissions changed then to www-data

I'm unsure why this happen at all. This behavior has started after some changes (change php from 8.1 to 8.2, run composer updated deps, updated lando to version v3.9.0)

lando.yaml

changed
image: lando/php:8.1-apache-4
to
image: lando/php:8.2-apache-4

composer I downgrade now and let me see this can be related to a composer update?

  - Downgrading symfony/yaml (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/filesystem (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/string (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/console (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/config (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading nikic/php-parser (v4.15.3 => v4.15.2): Extracting archive
  - Downgrading nette/utils (v3.2.9 => v3.2.8): Extracting archive
  - Downgrading symfony/stopwatch (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/process (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/options-resolver (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/finder (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/event-dispatcher (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading friendsofphp/php-cs-fixer (v3.14.2 => v3.13.1): Extracting archive
  - Downgrading phpunit/php-code-coverage (9.2.24 => 9.2.23): Extracting archive
  - Downgrading phpunit/phpunit (9.5.28 => 9.5.27): Extracting archive
  - Downgrading brianium/paratest (v6.8.1 => v6.8.0): Extracting archive
  - Downgrading symfony/intl (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/twig-bridge (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/http-foundation (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/var-dumper (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/error-handler (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/http-kernel (v6.2.5 => v6.2.4): Extracting archive
  - Downgrading symfony/var-exporter (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/dependency-injection (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/twig-bundle (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/routing (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/cache (v6.2.5 => v6.2.4): Extracting archive
  - Downgrading symfony/framework-bundle (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/translation (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/password-hasher (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/security-core (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/property-info (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/property-access (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/security-http (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/security-csrf (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/security-bundle (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/lock (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading doctrine/event-manager (2.0.0 => 1.2.0): Extracting archive
  - Downgrading doctrine/persistence (3.1.3 => 3.1.2): Extracting archive
  - Downgrading symfony/doctrine-bridge (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/asset (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading doctrine/dbal (3.5.3 => 3.5.2): Extracting archive
  - Downgrading doctrine/collections (2.1.2 => 1.8.0): Extracting archive
  - Downgrading doctrine/orm (2.14.1 => 2.14.0): Extracting archive
  - Downgrading doctrine/doctrine-bundle (2.8.2 => 2.8.0): Extracting archive
  - Downgrading damienharper/auditor (2.4.4 => 2.4.3): Extracting archive
  - Downgrading doctrine/data-fixtures (1.6.3 => 1.6.1): Extracting archive
  - Downgrading friendsofphp/proxy-manager-lts (v1.0.14 => v1.0.13): Extracting archive
  - Downgrading doctrine/migrations (3.5.5 => 3.5.2): Extracting archive
  - Installing stella-maris/clock (0.1.7): Extracting archive
  - Downgrading lcobucci/clock (3.0.0 => 2.3.0): Extracting archive
  - Downgrading league/flysystem (3.12.2 => 3.12.0): Extracting archive
  - Downgrading league/flysystem-bundle (3.1.0 => 3.0.0): Extracting archive
  - Downgrading lcobucci/jwt (4.3.0 => 4.2.1): Extracting archive
  - Downgrading symfony/web-link (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/serializer (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading api-platform/core (v3.1.1 => v3.0.8): Extracting archive
  - Downgrading phpstan/phpstan (1.9.14 => 1.9.4): Extracting archive
  - Downgrading phpstan/phpstan-doctrine (1.3.32 => 1.3.28): Extracting archive
  - Downgrading phpstan/phpstan-strict-rules (1.4.5 => 1.4.4): Extracting archive
  - Downgrading phpstan/phpstan-symfony (1.2.20 => 1.2.19): Extracting archive
  - Downgrading ramsey/uuid (4.7.3 => 4.7.1): Extracting archive
  - Downgrading scheb/2fa-bundle (v6.6.0 => v6.4.0): Extracting archive
  - Downgrading scheb/2fa-backup-code (v6.6.0 => v6.4.0): Extracting archive
  - Downgrading scheb/2fa-totp (v6.6.0 => v6.4.0): Extracting archive
  - Downgrading symfony/http-client-contracts (v3.2.0 => v3.1.1): Extracting archive
  - Downgrading symfony/http-client (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading sentry/sentry (3.12.1 => 3.12.0): Extracting archive
  - Downgrading gedmo/doctrine-extensions (v3.11.0 => v3.10.0): Extracting archive
  - Downgrading symfony/messenger (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/amqp-messenger (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/dom-crawler (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/browser-kit (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/css-selector (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/debug-bundle (v6.2.5 => v6.2.1): Extracting archive
  - Downgrading symfony/doctrine-messenger (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/dotenv (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/expression-language (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/mime (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading egulias/email-validator (4.0.1 => 3.2.4): Extracting archive
  - Downgrading symfony/mailer (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/mailchimp-mailer (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/monolog-bridge (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/phpunit-bridge (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/uid (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/validator (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/web-profiler-bundle (v6.2.5 => v6.2.4): Extracting archive
  - Downgrading tijsverkoyen/css-to-inline-styles (2.2.6 => 2.2.5): Extracting archive
  - Downgrading lorenzo/pinky (1.0.9 => 1.0.7): Extracting archive
  - Downgrading zenstruck/assert (v1.3.0 => v1.2.0): Extracting archive
  - Downgrading zenstruck/foundry (v1.28.0 => v1.26.0): Extracting archive
  - Downgrading zenstruck/messenger-test (v1.6.0 => v1.5.1): Extracting archive

Ability to Disable Database

We have a CLI-only (Symfony Console) project but would like to use Lando so that our dev environments are portable and XDEBUG works out of the box.

We don't need any database for this. Unfortunately, it doesn't seem like there's any way to disable the database component of this recipe. Would it be possible for a value like disabled, none, or off to be provided for database?

For clarification, I did try this but got ERROR: No such service: database:

name: my_project
recipe: symfony
services:
  database: disabled

Update recipe to PHP 8.1

You get this message in the browser:

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.29. in /app/vendor/composer/platform_check.php on line 24

Lando wsl2 performance

Hello,

I'm trying to install Lando on wsl2 with docker desktop.

The recipe is Symfony (big and complex project) and the cache clear command is completed on 1 min later.

Instead if the command is launched on LAMP stack install directly on WSL2 (with out lando and docker), the command is completed on 30 sec.

My .lando.yml file is equal to Lando docs for testing.

Why this difference of performance?

Thanks.

Raffaele C.

Quick Start: Composer `require` command blocked by symfony/security-guard package

The Quick Start's composer require command is halted due to constraints in symfony/security-guard package.

If I remove that package, the download completes:

$ composer require -n annotations asset doctrine encore form logger maker profiler security security-guard stof/doctrine-extensions-bundle twig validator var-dumper
Using version ^6.2 for sensio/framework-extra-bundle
Using version ^2.2 for symfony/orm-pack
Using version ^1.14 for symfony/webpack-encore-bundle
Using version ^3.8 for symfony/monolog-bundle
Using version ^1.42 for symfony/maker-bundle
Using version ^1.0 for symfony/profiler-pack
Using version ^1.7 for stof/doctrine-extensions-bundle
Using version ^1.0 for symfony/twig-pack
symfony/maker-bundle is currently present in the require-dev key and you ran the command without the --dev flag, which would move it to the require key.
./composer.json has been updated
Running composer update sensio/framework-extra-bundle symfony/asset symfony/orm-pack symfony/webpack-encore-bundle symfony/form symfony/monolog-bundle symfony/maker-bundle symfony/profiler-pack symfony/security-bundle symfony/security-guard stof/doctrine-extensions-bundle symfony/twig-pack symfony/validator symfony/var-dumper
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires symfony/security-guard 6.0.*, found symfony/security-guard[v2.8.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but it does not match the constraint.

You can also try re-running composer require with an explicit version constraint, e.g. "composer require sensio/framework-extra-bundle:*" to figure out if any version is installable, or "composer require sensio/framework-extra-bundle:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Without security-guard package, it completes

$ composer require -n annotations asset doctrine encore form logger maker profiler security stof/doctrine-extensions-bundle twig validator var-dumper
Using version ^6.2 for sensio/framework-extra-bundle
Using version ^2.2 for symfony/orm-pack
[...]
Generating optimized autoload files
108 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Support for newer MariaDB versions

The dependency in the package-lock.json for "@lando/mariadb" is quite old (tag: 1.1.0, latest 1.3.0). Therefore only old versions of MariaDB are supported eg. 10.6. Support for newer versions will be quite handy.

Cache directory randomly inaccessible due to permissions in Windows

Hello there, I am not changing any permissions so I am not sure why Icaros keeps losing access rights. Can you tell me exactly which permissions Icaros requires the folder to have? Perhaps that will help me explore the issue further. One thing to note, when this happens Icaros cant fix the permissions right away, but then later i can try again and suddenly it can, very strange.

Symfony 6 recipe ?

Hello, I have a quick question.
Do you plan to upgrade Symfony recipe to Symfony 6 ?

`lando symfony` command result in an error

Hi Lando Team,
I'm using latest 3.9.0 version and in the list of available commands, one is about symfony.
I know that for running Symfony commands within the app container, we need to use lando console
but still, why is it listed as a valid command but raising a not found error ?

platformsh-symfony-template % lando         
Usage: lando <command> [args] [options]

Commands:
... 
  lando symfony           Runs symfony commands
... 
platformsh-symfony-template % lando version 
v3.9.0
platformsh-symfony-template % lando symfony 
/bin/sh: 1: symfony: not found
platformsh-symfony-template % 

BTW, I'm trying to add a README file with Lando instructions (local development) to use our Platform.sh Symfony template locally...
and BTW, great job, Lando is working well.

Error: Cannot find module '@lando/memcached/builders/memcached.js'

Error Message: Error: Cannot find module '@lando/memcached/builders/memcached.js'

Looks like we're using the new "correct" patch for the memcached builder, but it's one of the very few plugins that hasn't updated to use that format.

I'm going make a quick release of the Symfony recipe using the old path (@lando/memcached/services/memcached/builder.js); made an issue on the memcached plugin to address the underlying issue, which will require some minor releases on all other recipes using memcached.

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.