havvg's playground2018-05-19T10:26:06+00:00Toni Uebernickeltuebernickel@gmail.comCopyright (c) Toni Uebernickel/2015/02/07/symfony-how-to-bundleSymfony: How to Bundle2015-02-07T00:00:00+00:00<p>Creating a bundle for Symfony is one of the most misunderstood topics. This topic is very old, but it got some tension in the recent past. I’ve been discussing this topic with several people using different channels for more than three years now. There are some blog postings out there based on those discussions.</p>
/2012/11/03/how-to-extend-form-fields-in-symfony2.1How to extend form fields in Symfony2.1 using extensions2012-11-03T00:00:00+00:00<p>This blogpost explains on the example of adding support for the “autocomplete” attribute to widgets how to use form type extensions.
It also illustrates changes required when upgrading from Symfony 2.0 to 2.1.</p>
/2012/03/15/an-example-of-symfony2-collectiontype-form-field-prototypeAn example of Symfony2 CollectionType form field prototype2012-03-15T00:00:00+00:00<p>While working an a multi-step form with multiple <code class="highlighter-rouge">CollectionType</code> in it, I came across the issue requiring a generic solution for handling <code class="highlighter-rouge">allow_add</code> and <code class="highlighter-rouge">allow_delete</code> on a collection.
As there is no entry on the <code class="highlighter-rouge">allow_delete</code> part in the Symfony2 documentation itself, this solution may not be the best way to do it.
If you got other solutions on this topic, let me know!</p>
/2012/02/29/validate-emails-on-redirects-in-symfony2-with-behatValidate emails on redirects in Symfony2 with Behat2012-02-29T00:00:00+00:00<h2 id="contexts">Contexts</h2>
/2012/02/20/git-rebase-is-not-a-lion-it-is-a-cat-part-twogit rebase is not a lion, it's a cat - Part Two2012-02-20T00:00:00+00:00<p>The first part being an introduction to git rebase mechanics, this follow-up drives that introduction into real-world examples.</p>
/2012/02/18/git-rebase-is-not-a-lion-it-is-a-cat-part-onegit rebase is not a lion, it's a cat - Part One2012-02-18T00:00:00+00:00<p>There are many users out there being scared to use git rebase.
To wrap things up, git rebase is not a lion that will hunt you down.</p>
<p>It is a cat, it likes you, until you do something fancy and will hurt you once.
You will know how to deal with the situation properly the next time - but give it a try.</p>
<p>This post is about quelling some fears off those users - maybe you are one of them?</p>
/2012/02/15/Merge-git-subtree-on-failing-path-guessingMerging a git subtree on failing path guessing2012-02-15T00:00:00+00:00<p>In the previous post we set up a project using git-subtree.
Unfortunately there may be situations when the merge of the subtree will not make its way into the correct directory.</p>
/2012/02/13/Using-git-subtree-example-symfony2-bundle-on-cloudcontrolUsing git-subtree: Example adding Symfony2 bundle on cloudControl2012-02-13T00:00:00+00:00<p>Let’s say you got your closed source project built on Symfony2.
Let’s further say you are a proud customer of cloudControl.
Third assumption: You have not only one project, but two and those are sharing a closed source bundle.</p>
<p>See how to use <code class="highlighter-rouge">git-subtree</code> to add the shared bundle to both projects and having the bundle in a separate repository.</p>
/2011/11/25/how-to-extend-form-fields-in-symfony2How to extend form fields in Symfony2 using extensions2011-11-25T00:00:00+00:00<p>This blogpost explains on the example of adding a “help” message to widgets how to use form type extensions.</p>
/2011/10/30/github-pages-with-jekyllGithub:Pages with Jekyll2011-10-30T00:00:00+00:00<p>Finally, my blog is now on [github:pages]!
[github:pages]: https://pages.github.com</p>
/2011/09/13/behavior-driven-development-in-symfony2-with-behat-mink-and-zombie-jsBehavior Driven Development in Symfony2 with Behat, Mink and Zombie.js2011-09-13T00:00:00+00:00<p>Long time no post, but now it’s time for a new one. I wrote a guide on behavior driven development in Symfony2. It’s meant for beginners and designed “from scratch”. This guide caught some attention and made it into the official Behat documentation as a <a href="https://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html">cookbook entry</a>.</p>
<p>If you have any feedback on it, please let me know! If you would like to have something related covered, drop me a message!</p>
/2011/06/07/how-to-combine-git-and-cloudcontrol-using-githubHow to combine git and cloudControl using github2011-06-07T00:00:00+00:00<h2 id="what-is-git--the-short-version">What is git? – The short version.</h2>
<p>Git is a distributed version control system (VCS). What does “distributed” mean in this case? It means, that there is no “server” as in other VCS like subversion. The repository will be transferred as it to any other user who has access to it – including the complete history.</p>
<h2 id="what-is-github--a-small-overview">What is github? – A small overview.</h2>
<p>Github is a web based service to manage git repositories in a social way. You can create new repositories, fork others, modify the codebase and send your changes back. There are many more very cool features, but we keep it here for now.</p>
<h2 id="what-is-cloudcontrol--a-php-paas">What is cloudControl? – A PHP PaaS!</h2>
<p>Yes, that’s it: a great PHP platform as a service (PaaS) on top of Amazon Web Services. You will have your php application deployed on multiple machines with a single command. There are plenty of add-ons available such as worker processes, MySQL database, MongoDB and memcached to name a few.</p>
/2010/12/05/rackspace-cloud-serversRackspace Cloud Servers2010-12-05T00:00:00+00:00<p>I moved my servers into “The Cloud”™ - more specifically the [Rackspace Cloud]. Well why did I do this? The answer is about two years old. I asked my previous hosting service whether they are able to migrate my virtual servers to instances of their “root servers”. They said, this is not possible. As time flies by the vServers reached their limits. They were not scalable, so either I get another one .. and another one .. and yet another one. Well at some point I don’t want to sign another and another contract. I want to say “Now!” and the server is up - That’s why cloud. You have plenty of servers, make up your images for your certain server types and go for it. If you need more hardware, reboot - done!
[Rackspace Cloud]: https://www.rackspacecloud.com/1700.html</p>
/2010/11/29/cruisecontrol-git-modificationset-errorsCruiseControl git modificationset errors2010-11-29T00:00:00+00:00<p>I encountered some errors while configuring my <a href="https://phpundercontrol.org">phpUnderControl</a>. One of the errors were the <code class="highlighter-rouge"><git></code> <code class="highlighter-rouge"><modificationset></code> not returning results, but the gitbootstrapper actually updated the git repository. In my case, this was because the user running <a href="https://cruisecontrol.sourceforge.net/">CruiseControl</a> has set up colorful output in its git config. This option changes the output of the git-log command. The problem with that? The patterns the modificationset looks for do not match! I opened a <a href="https://jira.public.thoughtworks.org/browse/CC-1020">change request on Thoughtworks</a> for that - hopefully this will be fixed in the next release of CruiseControl.</p>
<p>The other error was about this warning <code class="highlighter-rouge">Git - warning: Log for '' only goes back to [date]</code>. This warning is thrown when you don’t have <em>a local reflog</em> back to that given date. This happened to me, because I removed the git repository within my build and cloned it on each build. This warning is no problem for the modificationset. However, I didn’t want this warning, so I updated my config.xml to use a cleanroom for the bootstrapper and the modificationset. Once built this warning should not occur another time, because you are not loosing the reflog of git anymore. I still clone the repository on each build, but this cleanroom won’t be touched anytime.</p>
/2010/11/27/speed-up-phpunit-codecoverage-in-symfony-projectsspeed up PHPUnit CodeCoverage in symfony projects2010-11-27T00:00:00+00:00<p>Well, <a href="https://www.phpunit.de">PHPUnit CodeCoverage</a> is pretty nice and exports some nice HTML files to take a look into. However, a project most often contains more than just PHP files and for a symfony project this could be the phpunit.xml.dist. It removes all folders from your coverage report, that most likely are not your stuff. This one is based on the shipped file of <a href="https://www.symfony-project.org/plugins/sfPHPUnit2Plugin">sfPHPUnit2Plugin</a>. The relevant part is the <code class="highlighter-rouge"><filter></code> section.</p>