Skip to content

Commit

Permalink
Adding DocBlocks to Fmi\Controller\IndexController
Browse files Browse the repository at this point in the history
  • Loading branch information
wingman007 committed Sep 9, 2013
1 parent f2e7edd commit d7bdc66
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"doctrine/doctrine-orm-module": "0.*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
"phpunit/phpunit": "3.7.*",
"phpdocumentor/phpdocumentor": "dev-develop"
}
}
Binary file modified composer.phar
Binary file not shown.
33 changes: 29 additions & 4 deletions module/Fmi/src/Fmi/Controller/IndexController.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
* FMI (https://github.com/wingman007/fmi/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* This is my long <b>description</b>
*
* @link https://github.com/wingman007/fmi for the canonical source repository
* @copyright Copyright (c) 2005-2013 LightSoft 2005 Ltd. Bulgaria
* @license https://github.com/coolcsn/CsnUser/blob/master/LICENSE BSD(3-Clause)License
* @author Stoyan Cheresharov <[email protected]>
*/

/**
* This is our custom namespace for FMI project
*/
namespace Fmi\Controller;

use Zend\Mvc\Controller\AbstractActionController;
Expand All @@ -26,8 +32,27 @@

use Fmi\Entity\User;

/**
* FMI controller
*
* This controller has been build with <b>educational</b> purposes
*/
class IndexController extends AbstractActionController
{
/**
* Property to hold Doctrine Entity Manager
*
* @var object
*/
protected $_em = null;

/**
* Retrieve action from CRUD
*
* The method uses Doctrine Entity Manager to retrieve the Entities from the virtual database
*
* @return Zend\View\Model\ViewModel|array colection of objects
*/
public function indexAction()
{
$entityManager = $this->getServiceLocator()->get('doctrine.entitymanager.orm_default');
Expand Down
11 changes: 11 additions & 0 deletions vendor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ doctrine
symfony
coolcsn
phpunit
cilex
dflydev
jms
monolog
nikic
phpcollection
phpdocumentor
phpoption
pimple
psr
twig

0 comments on commit d7bdc66

Please sign in to comment.