サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
猛暑に注意を
matthiasnoback.nl
I'm happy to share with you the first chapter of my new book, Microservices for everyone. I'm still in the process of writing it and intend to release parts of it during the next weeks. If you're interested, sign up on the book's landing page and receive a 25% discount when the first chapter gets released. If you're curious about the table of contents so far: you'll find it in the PDF version of t
Composer "provide" and dependency inversion Matthias Noback October 4, 2014 This is a response to Peter Petermann’s article Composer and virtual packages. First, let’s make this totally clear: I don’t want to start an Internet war about this, I’m just pointing out some design issues that may arise from using Composer’s provide option in your package’s composer.json file. This means it’s also nothi
Symfony2: How to create framework independent controllers? Matthias Noback June 16, 2014 Part I: Don’t use the standard controller The general belief is that controllers are the most tightly coupled classes in every application. Most of the time based on the request data, they fetch and/or store persistent data from/in some place, then turn the data into HTML, which serves as the response to the c
Software Development & Design Discovering best practices in PHP & Fortran code Fortran projects are famous for their large modules. Actually, we may also find very large files in legacy projects written in other languages, like Java, PHP, etc. These projects sometimes have files with thousands of lines of code. Fortran projects suffer more from large files I’d say, because: IDE support is not grea
The Symfony Security Component provides a two-layer security system: first it authenticates a user, then is authorizes him for the current request. Authentication means "identify yourself". Authorization means: "let's see if you have the right to be here". The deciding authority in this case will be the AccessDecisionManager. It has a number of voters (which you may create yourself too). Each vote
Symfony2 Config Component: Config Definition and Processing Matthias Noback May 12, 2012 My previous post was about finding and loading configuration files. I now continue my Symfony2 Config Component quest with a post about the way you can “semantically expose your configuration” (using the TreeBuilder). I wrote this piece to later contribute it to the Symfony documentation so feedback is very we
Symfony2 & JMSSerializerBundle: Vendor MIME types and API versioning Matthias Noback April 26, 2012 The JMSSerializerBundle has a VersionExclusionStrategy, which allows you to serialize/deserialize objects for a specific version of your API. You can mark the properties that are available for different versions using the @Since and @Until annotations: use JMS\SerializerBundle\Annotation\Type; use J
Silex: getting your project structure right Matthias Noback January 29, 2012 When I created my first Silex project, I almost felt encouraged to let go of my high standards in programming. So things were starting to look very much like my “legacy” PHP projects, in which everything was put in functions with lengthy parameter lists and those functions were called from within a single index.php file.
Symfony2: Creating a Validator with dependencies? Make it a service! Matthias Noback November 22, 2011 One of the ugly things about Symfony 1 validators was that their dependencies were generally fetched from far away, mainly by calling sfContext::getInstance(). With Symfony2 and it’s service container, this isn’t necessary anymore. Validators can be services. The example below is quite simple, bu
Symfony2 service container: how to make your service use tags Matthias Noback October 12, 2011 First of all: dependency injection is GREAT! Several of Symfony2’s core services depend on tags to recognize which user-defined services should be loaded, notified of events, etc. For example, Twig uses the tag twig.extension to load extra extensions. It would also be great to use tags in case your servi
Symfony2 & Doctrine Common: creating powerful annotations Matthias Noback December 20, 2011 I was looking into the Doctrine Common library; it seems to me that especially the AnnotationReader is quite interesting. Several Symfony2 bundles use annotation for quick configuration. For example adding an @Route annotation to your actions allows you to add them “automatically” to the route collection. T
このページを最初にブックマークしてみませんか?
『Software Development & Design』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く