- PHP requirements: 5.3, ext/intl
- https://github.com/symfony/symfony-sandbox vs. https://github.com/symfony/symfony-bootstrapper vs. ..
- submodules vs. vendor scripts vs. MR
- submodule cons: not everything is in git (svn, mercurial etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// put this into "dev/less/getcss.php" | |
// checkout lessphp into src/vendor: git clone git://github.com/leafo/lessphp.git | |
// add "Alias /dev/ /home/you/src/joiz/dev/" to your vhost | |
// add "RewriteRule ^main.css$ dev/less/getcss.php?cssfile=main [L]" to your vhost or .htaccess | |
// create app/config/main.less, use imports into your bundles (Resources/data/less/*) | |
// browse to http://[yourdomain]/main.css | |
$lessCompiler = __DIR__.'/../../src/vendor/lessphp/lessc.inc.php'; | |
if (!include $lessCompiler) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\FooBundle\Controller; | |
class MultiplexController | |
{ | |
/** | |
* Request | |
* @var Symfony\Component\HttpFoundation\Request | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctrine_user.config: | |
db_driver: odm | |
class: | |
model: | |
user: Bundle\ExerciseUserBundle\Document\User | |
group: ~ | |
permission: ~ | |
form: | |
user: ~ | |
group: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Bundle\MultiFrontControllerBundle\Test; | |
class WebTestCase extends \Symfony\Bundle\FrameworkBundle\Test\WebTestCase | |
{ | |
/** | |
* @see The class description | |
*/ | |
public function __construct() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\FooBundle\Test; | |
use Doctrine\Common\DataFixtures\Loader; | |
use Doctrine\Common\DataFixtures\Executor\ORMExecutor; | |
use Doctrine\Common\DataFixtures\Purger\ORMPurger; | |
class WebTestCase extends \Symfony\Bundle\FrameworkBundle\Test\WebTestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\FooBundle\Test; | |
/* | |
* The on-line validator: http://validator.nu/ | |
* The documentation: http://about.validator.nu/ | |
* Documentation about the web service: http://wiki.whatwg.org/wiki/Validator.nu_Web_Service_Interface | |
*/ | |
class Html5WebTestCase extends WebTestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// RewriteRule ^css/main.css$ dev/less/getcss.php?cssfile=main [L] | |
header("Cache-Control: no-cache"); | |
header('Content-Type: text/css'); | |
if (isset($_GET['cssfile'])) { | |
$cache = generatecss($_GET['cssfile']); | |
if (isset($cache['compiled']) && is_array($cache)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Before ### | |
## Doctrine Configuration | |
doctrine.dbal: | |
dbname: xxxxxxxx | |
user: xxxxxxxx | |
password: ~ | |
logging: %kernel.debug% | |
doctrine.orm: | |
auto_generate_proxy_classes: %kernel.debug% | |
mappings: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# uses http://yaml.org/type/merge.html | |
# imports read the given file and define implicit merge key alias for all possible paths | |
### | |
# config.yml | |
foo: bar | |
# implicitly defines a &ding merge key alias | |
ding: |
OlderNewer