Created
July 9, 2014 13:38
-
-
Save bestform/17f97a03815a1d6c4936 to your computer and use it in GitHub Desktop.
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 | |
$rootNode | |
->children() | |
->scalarNode('path') | |
->defaultValue('%kernel.cache_dir%/gitprojects') | |
->validate()->ifTrue(function($value){ | |
return !file_exists($value); | |
})->thenInvalid('Path must exist') | |
->end() | |
->end() | |
->end(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment