News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Master Zend Framework:
Creating Custom ZFTool Diagnostic Classes
May 21, 2014 @ 11:23:59

Continuing on from his previous post introducing you to the ZFTool for Zend Framework 2 applications, Matthew Setter has posted part two of the series focusing on the creation of custom diagnostic classes for the tool.

In this week's tutorial, we're going to see how to step beyond the in-built classes and write our own custom checks. Specifically, we're going to write a check which runs php lint on the module's config file, module.config.php. The reason for doing this is because this file is so important in the configuration of a ZF2 module, that we should have a helpful sanity check for it.

He starts by helping you get all the needed dependencies in place, the ZFTool and ZendDiagnostics modules, installed via Composer. He includes code to help get started on the new diagnostic class and accompanying files. He implements some required methods from an interface, and shows how to enable its checking and define the configuration file. He includes a screenshot of the output so you can ensure things are working as they should be.

0 comments voice your opinion now!
zendframework2 zftool custom diagnostic class tutorial

Link: http://www.masterzendframework.com/zftool-2/creating-a-custom-zftool-diagnostic-class

blog comments powered by Disqus

Similar Posts

Mpwebwizard.com: Use a mirror for hits from popular websites

Carl Vuorinen: Installing SonarQube with Jenkins integration for a PHP project

PHP and Me Blog: Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP

Limitless Studios: Determine Number Of Online Users Without A Database

NetTuts.com: How to Use the Nettuts+ Phing Build Script


Community Events





Don't see your event here?
Let us know!


code threedevsandamaybe conference laravel tips list deployment zendserver symfony framework series bugfix release introduction interview language voicesoftheelephpant podcast api community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework