├── README.md └── optimize.sh /README.md: -------------------------------------------------------------------------------- 1 | **DEPRECATED** Don't use this repository anymore. Use Flex instead, which allows to create a Hello World application in a much robust way. This repository will be deleted at some point. 2 | 3 | Symfony Hello World Edition 4 | =========================== 5 | 6 | Symfony Hello World Edition is the Symfony distribution you want to use when 7 | doing "Hello World" benchmarks. 8 | 9 | It consists of one script (`optimize.sh`) that you need to run to get a fresh 10 | Symfony Standard Edition optimized for raw performance benchmarks. 11 | 12 | Benchmark Symfony by getting the `/app.php/hello/world` URL. 13 | -------------------------------------------------------------------------------- /optimize.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "WARNINIG: Don't use this script anymore, it's deprecated. Use Symfony Flex instead to create more robusts Hello World applications." 4 | 5 | # Script that optimizes a Symfony2 standard distribution for raw performance benchmarks 6 | 7 | # Get the Symfony2 standard edition 8 | mkdir benchmark 9 | cd benchmark 10 | git clone http://github.com/symfony/symfony-standard.git . 11 | 12 | # Remove unneeded vendor specific code 13 | cat > app/autoload.php < app/AppKernel.php <load(__DIR__.'/config/config.yml'); 39 | } 40 | 41 | public function getRootDir() 42 | { 43 | return __DIR__; 44 | } 45 | } 46 | EOF 47 | 48 | # Optimize the configuration 49 | cat > app/config/config.yml < app/config/routing.yml < src/Acme/HelloBundle/AcmeHelloBundle.php < src/Acme/HelloBundle/Controller/HelloController.php <render('AcmeHelloBundle::index.html.php'); 94 | } 95 | } 96 | EOF 97 | 98 | # Create the template 99 | cat > src/Acme/HelloBundle/Resources/views/index.html.php < composer.json <=5.3.3", 113 | "symfony/symfony": "@stable", 114 | "sensio/distribution-bundle": "@stable" 115 | }, 116 | "replace": { 117 | "doctrine/common": "*", 118 | "twig/twig": "*" 119 | }, 120 | "scripts": { 121 | "post-install-cmd": [ 122 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::buildBootstrap", 123 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::clearCache", 124 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::installAssets", 125 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::installRequirementsFile" 126 | ], 127 | "post-update-cmd": [ 128 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::buildBootstrap", 129 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::clearCache", 130 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::installAssets", 131 | "Sensio\\\Bundle\\\DistributionBundle\\\Composer\\\ScriptHandler::installRequirementsFile" 132 | ] 133 | }, 134 | "extra": { 135 | "symfony-app-dir": "app", 136 | "symfony-web-dir": "web" 137 | } 138 | } 139 | EOF 140 | 141 | cat > composer.lock <