DonCallisto

Composer conflict, how can we use it?

Today I found a very useful Composer schema package link option named conflict, which is useful when third-party code you rely on is too permissive for your needs. At the time of writing, the conflict man page states Lists packages that conflict with this version of this package. They will…

Composition over inheritance: tackle the “Template Method”

In this article we’re gonna talk about composition over inheritance but not approaching this topic from a theoretical point of view (you can find dozens of good articles online by googling the topic), but instead by providing an example of something that in literature is a well-know pattern: Template Method….

About inversion of control

Introduction Inversion of control seems to be a tricky topic among developers and every developer declins it in its own way. Searching on the web it seems that first usage of this term – that is not a pattern, rather a concept or a metodology – is attributable to Michael Mattson,…

SymfonyDay 2017 videos

As written before we have taken part in Symfony Day. Couple of days ago video of the event were uploaded and you can check them out here We would be happy to have feedbacks so, don’t hesitate!

Method order assertion in PHPSpec: Deferred Expectations

Disclaimer This post title can be misleading. Method order is just an implementation detail that should not be tested as PHPSpec philosophy is to test your public API, not the implementation as it would lead to fragile tests. Fundamentalists might say that following example should not be performed in PHPSpec but with…

Symfony form pills – form type options

Today we are going to tackle a problem that I’ve recently faced with Symfony form types. Scenario: I need a choice type of a certain entity (Foo) with values that follows a certain logic

I’ve built up a FooChoiceType because I don’t want to inject fooAdapter in each form where I’m…

The subtle difference of Prophecy doubles

Did you know that “under the hood” PHPSpec use Prophecy as library to create doubles? If you did not, now you do! If you read Prophecy documentation you may end up with some questions, so this guide is meant to be a quick tutorial to let you start working with the library:…

SymfonyDay Italy: videos

Hello everybody, we are pleased to announce that finally videos of SfDayIT2016 have been posted by GrUSP onto Vimeo channel. If you don’t know that we were selected as speakers for that event, well, now you are aware  😀 Below you can find Matteo’s talk about scaling with Symfony (we suggest to read…

What’s new in PHP7.1

Introduction If you have not read yet our blog post about new features in PHP7, we highly recommend to do so before continue reading. In this post we’re going to analyze new features proposed by PHP7.1 that have “seen the light” 2 October 2017. Nullable types Function’s argument type and return…

1 2