Prints a nice wurst to your shell.
Installation is a quick (I promise!) 3 step process:
- Download MarcWWurstBundle
- Configure the Autoloader
- Enable the Bundle
Ultimately, the MarcWWurstBundle files should be downloaded to the
vendor/bundles/MarcW/Bundle/WurstBundle
directory.
This can be done in several ways, depending on your preference. The first method is the standard Symfony2 method.
Using the vendors script
Add the following lines in your deps
file:
[MarcWWurstBundle]
git=git://github.com/marcw/MarcWWurstBundle.git
target=bundles/MarcW/Bundle/WurstBundle
Now, run the vendors script to download the bundle:
$ php bin/vendors install
Using submodules
If you prefer instead to use git submodules, then run the following:
$ git submodule add git://github.com/marcw/MarcWWurstBundle.git vendor/bundles/MarcW/Bundle/WurstBundle
$ git submodule update --init
Add the MarcW
namespace to your autoloader:
<?php
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'MarcW' => __DIR__.'/../vendor/bundles',
));
Finally, enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new MarcW\Bundle\WurstBundle\MarcWWurstBundle(),
);
}
If you got some nice wurst ascii art, feel free to contribute ;)
Big props to all the sfday 2011 attendees!