Sortie du snippet %tag% "Le MakeFile parfait pour Symfony (au moins pour moi ! 😁)"

Environement :

  • Strangebuzz Snippet VM : 1.8.3
  • Symfony : 5.0.4

Sortie du code exΓ©cutΓ© :

 β€”β€” 🐝 The Strangebuzz Symfony Makefile 🐝 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
help                           Outputs this help screen
wait                           Sleep 5 seconds
 β€”β€” Composer πŸ§™β€β™‚οΈ β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
install                        Install vendors according to the current composer.lock file
update                         Update vendors according to the composer.json file
 β€”β€” PHP 🐘 (macOS with brew) β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
php-upgrade                    Upgrade PHP to the last version
php-set-7-2                    Set php 7.2 as the current PHP version
php-set-7-3                    Set php 7.3 as the current PHP version
php-set-7-4                    Set php 7.4 as the current PHP version
 β€”β€” Symfony 🎡 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
sf                             List all Symfony commands
cc                             Clear the cache. DID YOU CLEAR YOUR CACHE????
warmup                         Warmump the cache
fix-perms                      Fix permissions of all var files
assets                         Install the assets with symlinks in the public folder
purge                          Purge cache and logs
 β€”β€” Symfony binary πŸ’» β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
bin-install                    Download and install the binary in the project (file is ignored)
cert-install                   Install the local HTTPS certificates
serve                          Serve the application with HTTPS support
unserve                        Stop the web server
 β€”β€” elasticsearch πŸ”Ž β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
populate                       Reset and populate the elasticsearch index
list-index                     List all indexes on the cluster
delete-index                   Delete a given index (replace index by the index name to delete)
 β€”β€” Docker 🐳 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
up                             Start the docker hub (MySQL,redis,adminer,elasticsearch,head,Kibana)
down                           Stop the docker hub
 β€”β€” Project 🐝 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
run                            Start docker, load fixtures, populate the Elasticsearch index and start the web server
reload                         Reload fixtures and repopulate the Elasticserch index
abort                          Stop docker and the Symfony binary server
cc-redis                       Flush all Redis cache
commands                       Display all commands in the project namespace
load-fixtures                  Build the db, control the schema validity, load fixtures and check the migration status
init-snippet                   Initialize a new snippet
 β€”β€” Tests βœ… β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
test                           Launch main functionnal and unit tests
test-external                  Launch tests implying external resources (api, services...)
test-all                       Launch all tests
 β€”β€” Coding standards ✨ β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
cs                             Launch check style and static analysis
codesniffer                    Run php_codesniffer only
stan                           Run PHPStan only
psalm                          Run psalm only
init-psalm                     Init a new psalm config file for a given level, it must be decremented to have stricter rules
cs-fix                         Run php-cs-fixer and fix the code.
 β€”β€” Deploy & Prod πŸš€ β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
deploy                         Full no-downtime deployment with EasyDeploy
env-check                      Check the main ENV variables of the project
le-renew                       Renew Let's encrypt HTTPS cerificates
 β€”β€” Stats πŸ“œ β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 
stats                          Commits by hour for the main author of this project

 Retour au code  β‰ͺ showUnitTestButtonLabel ≫  Plus sur Stackoverflow   Lire la doc  Plus sur le web  Snippet alΓ©atoire

<?php declare(strict_types=1);

namespace App\Tests\Controller\Snippets;

use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Process\Process;

/**
 * @covers Snippet
 */
final class Snippet8Test extends KernelTestCase
{
    protected function setUp(): void
    {
        self::bootKernel();
    }

    /**
     * @covers Snippet8Trait::snippet8
     *
     * @see https://www.strangebuzz.com/en/snippets/get-the-routing-information-of-the-referer
     */
    public function testSnippet8(): void
    {
        $process = new Process(['make', '-f', self::$kernel->getProjectDir().'/Makefile']);
        $process->run();
        $this->assertStringContainsStringIgnoringCase('The Strangebuzz Symfony Makefile', $process->getOutput());
    }
}