Based on Zend Framework 2