<commit_before><?php
    /**
     * Eceon Framework (http://eceon.mezio.nl/)
     *
     * @author <NAME> (<EMAIL>)
     * @copyright Copyright (c) 2012-2014 Mezio (http://www.mezio.nl)
     * @version $Id: AbstractController.php 359 2015-06-02 09:37:25Z ted $
     * $package Eceon/MVC/Controller
     */

    namespace Eceon\MVC\Controller;

    use Eceon\MVC\Model\Service\Factory as ServiceFactory;
    use Eceon\MVC\View\InterfaceView;
    use Eceon\Request\InterfaceRequest;
    
    abstract class AbstractController implements InterfaceController
    {
        /**
         * @var ServiceFactory
         */
        protected $objServiceFactory = null;
        
        /**
         * @var InterfaceView
         */
        protected $objView = null;
        
        /**
         * @var Helper\Manager
         */
        protected $objHelperManager = null;
        
        
        
        
    
        /**
         * Executes the given request object
         * 
         * @param string $pAction
         * @param InterfaceRequest $pRequest
         * @throws Exception 
         */
        public function execute( $pAction, InterfaceRequest $pRequest )
        {
            if( is_callable( array( $this, 'action' . $pAction ) ) === false )
            {
                throw new \Exception( 'Cannot find command ' . $pAction . ' in ' . get_class( $this ) );
            }
            
            // execute function
            call_user_func( array( $this, 'action' . $pAction ), $pRequest );
        }
        
        

        
        
        
        /**
         * Sets the ServiceFactory
         * <commit_msg>changed controller Action function naming<commit_after><?php
    /**
     * Eceon Framework (http://eceon.mezio.nl/)
     *
     * @author <NAME> (<EMAIL>)
     * @copyright Copyright (c) 2012-2014 Mezio (http://www.mezio.nl)
     * @version $Id: AbstractController.php 359 2015-06-02 09:37:25Z ted $
     * $package Eceon/MVC/Controller
     */

    namespace Eceon\MVC\Controller;

    use Eceon\MVC\Model\Service\Factory as ServiceFactory;
    use Eceon\MVC\View\InterfaceView;
    use Eceon\Request\InterfaceRequest;
    
    abstract class AbstractController implements InterfaceController
    {
        /**
         * @var ServiceFactory
         */
        protected $objServiceFactory = null;
        
        /**
         * @var InterfaceView
         */
        protected $objView = null;
        
        /**
         * @var Helper\Manager
         */
        protected $objHelperManager = null;
        
        
        
        
    
        /**
         * Executes the given request object
         * 
         * @param string $pAction
         * @param InterfaceRequest $pRequest
         * @throws Exception 
         */
        public function execute( $pAction, InterfaceRequest $pRequest )
        {
            if( is_callable( array( $this, $pAction . 'Action' ) ) === false )
            {
                throw new \Exception( 'Cannot find command ' . $pAction . 'Action in ' . get_class( $this ) );
            }
            
            // execute function
            call_user_func( array( $this, $pAction . 'Action' ), $pRequest );
        }
        
        

        
        
        
        /**
         * Sets the ServiceFactory
         * 
{'fraction_non_alphanumeric': 0.10554885404101327, 'fraction_numerical': 0.015078407720144753, 'mean_word_length': 1.433602347762289, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6431815', 'n_tokens_mistral': 978, 'n_tokens_neox': 910, 'n_words': 205}