This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # | |
# Example Settings # | |
# # | |
# This file contains settings for various parts of the application. # | |
# Copy this file to Settings.yaml, and adjust as necessary. # | |
# # | |
# Please refer to the default settings file(s) or the manuals for # | |
# possible configuration options. # | |
# # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/composer.json b/composer.json | |
index 70fa022..30a84f7 100644 | |
--- a/composer.json | |
+++ b/composer.json | |
@@ -14,7 +14,12 @@ | |
}, | |
"require": { | |
"typo3/flow": "2.0.*", | |
- "typo3/welcome": "2.0.*" | |
+ "typo3/welcome": "2.0.*", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getConfigurationFor($propertyName) { | |
if (isset($this->subConfigurationForProperty[$propertyName])) { | |
return $this->subConfigurationForProperty[$propertyName]; | |
} elseif (isset($this->subConfigurationForProperty[self::PROPERTY_PATH_PLACEHOLDER])) { | |
return $this->subConfigurationForProperty[self::PROPERTY_PATH_PLACEHOLDER]; | |
} | |
return new \TYPO3\FLOW3\Property\PropertyMappingConfiguration(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Wojtowicz\Utilities\Service; | |
use TYPO3\FLOW3\Annotations as FLOW3; | |
/** | |
* Created by Sebastian Wojtowicz. | |
* Date: 15.08.12 - 13:57 | |
* | |
* @FLOW3\Scope("singleton") | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[!!!][BUGFIX] Avoid validating instances more often than needed | |
The GenericObjectValidator uses a static variable to store objects being | |
validated. Objects were still validated over and over because at the | |
end of isValid() they were detached again. | |
This change replaces that detach() call with another concept. Now | |
any validator implementing the new ObjectValidatorInterface can be | |
given an SplObjectStorage to keep track of instances already | |
validated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Genero { | |
/** | |
* The peliculas | |
* @var \Peliculas\Domain\Model\Peliculas | |
* @ORM\ManyToOne | |
*/ | |
protected $peliculas; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("a").click(function(event){ | |
event.preventDefault(); | |
var request = $.ajax({ | |
url: '<f:format.raw><f:uri.widget ajax="TRUE" action="list" /></f:format.raw>', | |
type: "GET", | |
dataType: "html" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* save the registration | |
* @param string $email email | |
* @param string $pw password | |
* @param string $uname username | |
* @FLOW3\Validate(argumentName="email", type="EmailAddress") | |
* @FLOW3\Validate(argumentName="email", type="NotEmpty") | |
* @FLOW3\Validate(argumentName="pw", type="Me\My\Validation\Validator\PasswordValidator", options={ "minimum"=1, "maximum"=255 }) | |
*/ | |
public function createAction($email = '', $pw = '', $uname = '') {...} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Me\My\Validation\Validator; | |
use TYPO3\FLOW3\Annotations as FLOW3; | |
/** | |
* Validator for password | |
* | |
* @api | |
* @FLOW3\Scope("singleton") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:flashMessages /> | |
<f:form action="create" controller="Login" method="post" name="createform"> | |
<div><label>Email:</label><f:form.textfield name="email" /></div> | |
<div><label>Password:</label><f:form.textfield name="pw" /></div> | |
<div><label>Repeat Password:</label><f:form.textfield name="pwr" /></div> | |
<div><label>Username:</label><f:form.textfield name="uname" /></div> | |
<f:form.submit value="Register and Login" /> | |
</f:form> |