Skip to main content

Sending mails with attachments in Magento 2

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· One min read
Florian Horn
Business Analyst Digital Sales

The Magento 2 Transport Builder, responsible for preparing a mail message, wraps the mail component of the Zend Framework. Unfortunatly it is missing a method to add attachments. I submitted a Pull Request to Magento 2 to fix the issue but for now we need a work-a-round in our project. First we extend the Magento 2 Transport Builder like this:

Dutch PHP Conference 2016

· One min read
Stephan Hochdörfer
Head of IT Business Operations

Vom 23.06.2016 bis zum 25.06.2016 findet bereits zum 10. Mal in Amsterdam die Dutch PHP Conference statt. Ich freue mich zum siebten Mal in Folge dabei sein zu können und meinen Vortrag "Microservices: Packs small, plays BIG!" präsentieren zu dürfen.

Using bitexpert/pathfinder with willdurand/hateoas

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· 2 min read
Stephan Hochdörfer
Head of IT Business Operations

When I began converting the unKonf API backend to make use of Adroit and Disco I wanted to give the willdurand/Hateoas a try to turn the API into a "real" HATEOAS REST web service. Since we use our Pathfinder component as a router it felt natural to use Pathfinder to generate the links for the relations between the different domain objects. Luckily the willdurand/hateoas is pretty flexible and allows to define custom Url Generators with a few lines of code:

Dbal Storage for OAuth 2 Server

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· 2 min read
Stephan Hochdörfer
Head of IT Business Operations

Recently I experimented a bit with OAuth 2.0 Server because I wanted to protect the API backend for the unKonf website using OAuth2 - mostly to see how easily I can integrate it with our Adroit middleware. While integrating OAuth2 Server and Adroit was fairly trivial, I was missing a Doctrine storage provider for OAuth 2.0 Server. Since I could not even find a package on packagist I thought about writing one myself. You can find the bitexpert/oauth2-server-storage-dbal package on Github. It can be installed it via Composer:

Disco v0.2.0 is out

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· 2 min read
Stephan Hochdörfer
Head of IT Business Operations

Last week when I was in Miami to speak at the SunshinePHP 2016 conference I took the time to prepare the version 0.2.0 release of our PHP DI container called Disco. This release features 2 important changes which I want to highlight in this blog post.