Cleanup
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 28 Jan 2015 14:58:07 +0000 (14:58 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 28 Jan 2015 14:58:07 +0000 (14:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sr_freecap/trunk@88297 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/Controller/AudioPlayerController.php
Classes/Controller/FontMakerController.php
Classes/Controller/ImageGeneratorController.php
Classes/Utility/GifBuilderUtility.php
Classes/Validation/Validator/TtfFileValidator.php
Classes/View/AudioPlayer/PlayMp3.php
Classes/View/AudioPlayer/PlayWav.php
Classes/View/ImageGenerator/ShowPng.php

index 7e2738a..0f5be8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-01-28  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Cleanup
+
 2015-01-27  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #64543: Extension does not handle vendorName
index d435623..b8fc470 100644 (file)
@@ -47,7 +47,7 @@ class AudioPlayerController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionCont
         *
         * @return void
         */
-       public function initializeAction() {
+       protected function initializeAction() {
                // Get an instance of the word repository
                $this->wordRepository = $this->objectManager->get('SJBR\\SrFreecap\\Domain\\Repository\\WordRepository');
        }
index d6722e3..94af943 100644 (file)
@@ -38,30 +38,6 @@ class FontMakerController  extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionContr
        protected $extensionName = 'SrFreecap';
 
        /**
-        * Initializes the controller before invoking an action method.
-        * @return void
-        */
-       protected function initializeAction() {
-               $this->setBackendModuleTemplates();
-       }
-       
-       /**
-        * Set Backend Module Templates
-        * @return void
-        */
-       private function setBackendModuleTemplates(){
-               $frameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
-               $viewConfiguration = array(
-                       'view' => array(
-                               'templateRootPath' => 'EXT:sr_freecap/Resources/Private/Backend/Templates/',
-                               'partialRootPath' => 'EXT:sr_freecap/Resources/Private/Partials/',
-                               'layoutRootPath' => 'EXT:sr_freecap/Resources/Private/Backend/Layouts/'
-                       )
-               );
-               $this->configurationManager->setConfiguration(array_merge($frameworkConfiguration, $viewConfiguration));        
-       }
-
-       /**
         * Display the font maker form
         *
         * @param \SJBR\SrFreecap\Domain\Model\Font $font
index 5186f84..1466ad4 100644 (file)
@@ -52,7 +52,7 @@ class ImageGeneratorController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionC
         *
         * @return void
         */
-       public function initializeAction() {
+       protected function initializeAction() {
                // Get an instance of the word repository
                $this->wordRepository = $this->objectManager->get('SJBR\\SrFreecap\\Domain\\Repository\\WordRepository');
        }
index 42a6d2b..25f1fd8 100644 (file)
@@ -45,7 +45,7 @@ class GifBuilderUtility extends \TYPO3\CMS\Frontend\Imaging\GifBuilder {
        /**
         * Writes the input GDlib image pointer to file
         *
-        * @param       pointer         The GDlib image resource pointer
+        * @param       resource        The GDlib image resource pointer
         * @param       string          The filename to write to
         * @return      mixed           The output of either imageGif, imagePng or imageJpeg based on the filename to write
         * @see maskImageOntoImage(), scale(), output()
index 588b808..e12944a 100644 (file)
@@ -40,7 +40,7 @@ class TtfFileValidator extends \TYPO3\CMS\Extbase\Validation\Validator\AbstractV
         * @param mixed $value The value that should be validated
         * @return boolean TRUE if the value is within the range, otherwise FALSE
         */
-       public function isValid ($value) {
+       protected function isValid ($value) {
                $isValid = TRUE;
                $this->errors = array();
 
index 7bee973..993b77d 100644 (file)
@@ -49,6 +49,4 @@ class PlayMp3 extends AbstractPlayFormat {
                // Return the audio content
                return $audioContent;
        }
-}
-class_alias('SJBR\SrFreecap\View\AudioPlayer\PlayMp3', 'Tx_SrFreecap_View_AudioPlayer_PlayMp3');
-?>
\ No newline at end of file
+}
\ No newline at end of file
index cd8fbe5..dc3c75f 100644 (file)
@@ -31,6 +31,4 @@ namespace SJBR\SrFreecap\View\AudioPlayer;
  * @author     Stanislas Rolland       <typo3(arobas)sjbr.ca>
  */
 class PlayWav extends AbstractPlayFormat {
-}
-class_alias('SJBR\SrFreecap\View\AudioPlayer\PlayWav', 'Tx_SrFreecap_View_AudioPlayer_PlayWav');
-?>
\ No newline at end of file
+}
\ No newline at end of file
index 71cae33..24f5695 100644 (file)
@@ -257,5 +257,3 @@ class ShowPng implements \TYPO3\CMS\Extbase\Mvc\View\ViewInterface {
                return $image;
        }
 }
-class_alias('SJBR\SrFreecap\View\ImageGenerator\ShowPng', 'Tx_SrFreecap_View_ImageGenerator_ShowPng');
-?>