@@ -16,17 +16,17 @@ |
||
| 16 | 16 | $modules = array('Install'); |
| 17 | 17 | } else { |
| 18 | 18 | $modules = array( |
| 19 | - 'DoctrineModule', |
|
| 20 | - 'DoctrineMongoODMModule', |
|
| 21 | - 'Core', |
|
| 22 | - 'Auth', |
|
| 23 | - 'Cv', |
|
| 24 | - 'Applications', |
|
| 25 | - 'Jobs', |
|
| 26 | - 'Settings', |
|
| 27 | - 'Pdf', |
|
| 28 | - 'Geo', |
|
| 29 | - 'Organizations', |
|
| 19 | + 'DoctrineModule', |
|
| 20 | + 'DoctrineMongoODMModule', |
|
| 21 | + 'Core', |
|
| 22 | + 'Auth', |
|
| 23 | + 'Cv', |
|
| 24 | + 'Applications', |
|
| 25 | + 'Jobs', |
|
| 26 | + 'Settings', |
|
| 27 | + 'Pdf', |
|
| 28 | + 'Geo', |
|
| 29 | + 'Organizations', |
|
| 30 | 30 | ); |
| 31 | 31 | |
| 32 | 32 | if (!isset($allModules)) { |
@@ -10,21 +10,21 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | return array( |
| 12 | 12 | 'doctrine' => array( |
| 13 | - 'driver' => array( |
|
| 13 | + 'driver' => array( |
|
| 14 | 14 | 'odm_default' => array( |
| 15 | 15 | 'drivers' => array( |
| 16 | 16 | 'Applications\Entity' => 'annotation', |
| 17 | 17 | ), |
| 18 | 18 | ), |
| 19 | 19 | 'annotation' => array( |
| 20 | - /* |
|
| 20 | + /* |
|
| 21 | 21 | * All drivers (except DriverChain) require paths to work on. You |
| 22 | 22 | * may set this value as a string (for a single path) or an array |
| 23 | 23 | * for multiple paths. |
| 24 | 24 | * example https://github.com/doctrine/DoctrineORMModule |
| 25 | 25 | */ |
| 26 | - 'paths' => array( __DIR__ . '/../src/Applications/Entity', |
|
| 27 | - __DIR__ . '/../../../module/Cv/src/Cv/Entity'), |
|
| 26 | + 'paths' => array( __DIR__ . '/../src/Applications/Entity', |
|
| 27 | + __DIR__ . '/../../../module/Cv/src/Cv/Entity'), |
|
| 28 | 28 | ), |
| 29 | 29 | ), |
| 30 | 30 | 'eventmanager' => array( |
@@ -72,10 +72,10 @@ discard block |
||
| 72 | 72 | 'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions' |
| 73 | 73 | ), |
| 74 | 74 | 'factories' => array( |
| 75 | - 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
| 76 | - 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
| 77 | - 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
| 78 | - 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
| 75 | + 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
| 76 | + 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
| 77 | + 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
| 78 | + 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
| 79 | 79 | ), |
| 80 | 80 | ), |
| 81 | 81 | 'controllers' => array( |
@@ -172,25 +172,25 @@ discard block |
||
| 172 | 172 | ), |
| 173 | 173 | 'form_elements' => array( |
| 174 | 174 | 'invokables' => array( |
| 175 | - 'Applications/Mail' => 'Applications\Form\Mail', |
|
| 176 | - 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
| 177 | - 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
| 178 | - 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
| 179 | - 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
| 180 | - 'Applications/Apply' => 'Applications\Form\Apply', |
|
| 181 | - 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
| 182 | - 'Applications/Base' => 'Applications\Form\Base', |
|
| 183 | - 'Applications/Facts' => 'Applications\Form\Facts', |
|
| 184 | - 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
| 185 | - 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
| 186 | - 'Applications/Filter' => 'Applications\Form\FilterApplication', |
|
| 187 | - 'href' => 'Applications\Form\Element\Ref', |
|
| 188 | - ), |
|
| 175 | + 'Applications/Mail' => 'Applications\Form\Mail', |
|
| 176 | + 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
| 177 | + 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
| 178 | + 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
| 179 | + 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
| 180 | + 'Applications/Apply' => 'Applications\Form\Apply', |
|
| 181 | + 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
| 182 | + 'Applications/Base' => 'Applications\Form\Base', |
|
| 183 | + 'Applications/Facts' => 'Applications\Form\Facts', |
|
| 184 | + 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
| 185 | + 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
| 186 | + 'Applications/Filter' => 'Applications\Form\FilterApplication', |
|
| 187 | + 'href' => 'Applications\Form\Element\Ref', |
|
| 188 | + ), |
|
| 189 | 189 | 'factories' => array( |
| 190 | 190 | 'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory', |
| 191 | 191 | 'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory', |
| 192 | 192 | ), |
| 193 | - ), |
|
| 193 | + ), |
|
| 194 | 194 | |
| 195 | 195 | 'form_elements_config' => array( |
| 196 | 196 | 'Applications/Apply' => array( |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | $table = new Table( |
| 159 | 159 | array('columnWidths' => array(40, 40, 40), |
| 160 | - 'decorator' => 'ascii') |
|
| 160 | + 'decorator' => 'ascii') |
|
| 161 | 161 | ); |
| 162 | 162 | |
| 163 | 163 | $table->appendRow(array('Module', 'Name', 'Description')); |
@@ -238,8 +238,8 @@ discard block |
||
| 238 | 238 | $attachments = $app->getAttachments(); |
| 239 | 239 | foreach ($attachments as $attachment) { |
| 240 | 240 | $attachment->getPermissions() |
| 241 | - ->clear() |
|
| 242 | - ->inherit($permissions); |
|
| 241 | + ->clear() |
|
| 242 | + ->inherit($permissions); |
|
| 243 | 243 | } |
| 244 | 244 | $contact = $app->getContact(); |
| 245 | 245 | if ($contact) { |
@@ -247,8 +247,8 @@ discard block |
||
| 247 | 247 | |
| 248 | 248 | if ($image) { |
| 249 | 249 | $image->getPermissions() |
| 250 | - ->clear() |
|
| 251 | - ->inherit($permissions); |
|
| 250 | + ->clear() |
|
| 251 | + ->inherit($permissions); |
|
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | 254 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package Applications |
|
| 4 | - */ |
|
| 3 | + * @package Applications |
|
| 4 | + */ |
|
| 5 | 5 | namespace Applications\Entity; |
| 6 | 6 | |
| 7 | 7 | use Core\Entity\AbstractIdentifiableEntity; |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | public function init() |
| 21 | 21 | { |
| 22 | 22 | $this->setName('base'); |
| 23 | - //->setLabel( /* @translate */ 'General'); |
|
| 24 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
| 23 | + //->setLabel( /* @translate */ 'General'); |
|
| 24 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | $this->add( |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | if ($exception instanceof UnauthorizedImageAccessException) { |
| 58 | 58 | $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png'; |
| 59 | 59 | $response->setStatusCode(403) |
| 60 | - ->setContent(file_get_contents($image)) |
|
| 61 | - ->getHeaders() |
|
| 62 | - ->addHeaderLine('Content-Type', 'image/png'); |
|
| 60 | + ->setContent(file_get_contents($image)) |
|
| 61 | + ->getHeaders() |
|
| 62 | + ->addHeaderLine('Content-Type', 'image/png'); |
|
| 63 | 63 | $e->stopPropagation(); |
| 64 | 64 | $response->sendHeaders(); |
| 65 | 65 | //echo file_get_contents($image); |
@@ -99,10 +99,10 @@ discard block |
||
| 99 | 99 | $model->setTemplate($this->getExceptionTemplate()); |
| 100 | 100 | $e->setResult($model); |
| 101 | 101 | |
| 102 | - // $statusCode = $response->getStatusCode(); |
|
| 103 | - // if ($statusCode === 200) { |
|
| 102 | + // $statusCode = $response->getStatusCode(); |
|
| 103 | + // if ($statusCode === 200) { |
|
| 104 | 104 | $response->setStatusCode(403); |
| 105 | - // } |
|
| 105 | + // } |
|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | } |
@@ -1,9 +1,9 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Configuration for the DoctrineMongoODMModule |
|
| 4 | - * |
|
| 5 | - * Will be merged in the 'doctrine' Key from module.config.php |
|
| 6 | - */ |
|
| 3 | + * Configuration for the DoctrineMongoODMModule |
|
| 4 | + * |
|
| 5 | + * Will be merged in the 'doctrine' Key from module.config.php |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | 9 | |
@@ -26,11 +26,11 @@ discard block |
||
| 26 | 26 | // 'driver' => 'odm_default', |
| 27 | 27 | // |
| 28 | 28 | // 'generate_proxies' => true, |
| 29 | - 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
| 29 | + 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
| 30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
| 31 | 31 | // |
| 32 | 32 | // 'generate_hydrators' => true, |
| 33 | - 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
| 33 | + 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
| 34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
| 35 | 35 | // |
| 36 | 36 | // 'default_db' => '', |
@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | class mail extends Message implements PluginInterface |
| 15 | 15 | { |
| 16 | - protected $controller; |
|
| 17 | - protected $param; |
|
| 18 | - protected $config; |
|
| 16 | + protected $controller; |
|
| 17 | + protected $param; |
|
| 18 | + protected $config; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Set the current controller instance |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | } elseif (isset($this->config['templateHalf'])) { |
| 142 | 142 | $template = $this->config['templateHalf']; |
| 143 | 143 | } else { |
| 144 | - throw new \InvalidArgumentException('Not template provided for Mail.'); |
|
| 144 | + throw new \InvalidArgumentException('Not template provided for Mail.'); |
|
| 145 | 145 | } |
| 146 | 146 | return $template; |
| 147 | 147 | } |
@@ -154,19 +154,19 @@ discard block |
||
| 154 | 154 | $from = $this->config['from']; |
| 155 | 155 | } else { |
| 156 | 156 | $log->err('A from email address must be provided (Variable $from) in Template: ' . $template); |
| 157 | - throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: ' . $template); |
|
| 157 | + throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: ' . $template); |
|
| 158 | 158 | } |
| 159 | 159 | if (isset($this->config['fromName'])) { |
| 160 | 160 | $fromName = $this->config['fromName']; |
| 161 | 161 | } else { |
| 162 | 162 | $log->err('A from name must be provided (Variable $fromName) in Template: ' . $template); |
| 163 | - throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: ' . $template); |
|
| 163 | + throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: ' . $template); |
|
| 164 | 164 | } |
| 165 | 165 | if (isset($this->config['subject'])) { |
| 166 | 166 | $subject = $this->config['subject']; |
| 167 | 167 | } else { |
| 168 | 168 | $log->err('A subject must be provided (Variable $subject) in Template: ' . $template); |
| 169 | - throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: ' . $template); |
|
| 169 | + throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: ' . $template); |
|
| 170 | 170 | } |
| 171 | 171 | $this->setFrom($from, $fromName); |
| 172 | 172 | $this->setSubject($subject); |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - |
|
| 4 | - */ |
|
| 3 | + */ |
|
| 5 | 4 | |
| 6 | 5 | namespace Core\Form\View\Helper; |
| 7 | 6 | |