* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Generator; /** * ConfigurableRequirementsInterface must be implemented by URL generators that * can be configured whether an exception should be generated when the parameters * do not match the requirements. It is also possible to disable the requirements * check for URL generation completely. * * The possible configurations and use-cases: * - setStrictRequirements(true): Throw an exception for mismatching requirements. This * is mostly useful in development environment. * - setStrictRequirements(false): Don't throw an exception but return null as URL for * mismatching requirements and log the problem. Useful when you cannot control all * params because they come from third party libs but don't want to have a 404 in * production environment. It should log the mismatch so one can review it. * - setStrictRequirements(null): Return the URL with the given parameters without * checking the requirements at all. When generating a URL you should either trust * your params or you validated them beforehand because otherwise it would break your * link anyway. So in production environment you should know that params always pass * the requirements. Thus this option allows to disable the check on URL generation for * performance reasons (saving a preg_match for each requirement every time a URL is * generated). * * @author Fabien Potencier * @author Tobias Schultze */ interface ConfigurableRequirementsInterface { /** * Enables or disables the exception on incorrect parameters. * Passing null will deactivate the requirements check completely. * * @param bool|null $enabled */ public function setStrictRequirements($enabled); /** * Returns whether to throw an exception on incorrect parameters. * Null means the requirements check is deactivated completely. * * @return bool|null */ public function isStrictRequirements(); } __halt_compiler();----SIGNATURE:----VFKMjlNz5bAXRGf8tsaTXdhMFo5h3kek0aZmC3s3OVN0MB4D7TvbdjJeQLm+B9RuQt91crOLqUAYXebGKSr1/GEhfVDnuPJnuy/eiQQDHcpYiyNASG1wh1gbjRaabI9izh+AkQ5U3d+TpV94Yolc9wcoUHZPDxQ9kPaWDHCNvNSyC+UKYnbWQ+SCmH9hAvYQS3cqN1mw7wJW8NmuOUQGjIqWBSZbkcQcG6spM0wQNKKbuqw1qBwtzu7uASRlUKK4q665zUKKQmhl1RmFeDOIhzkb530ku7wr/qskZimUrg6p+UGJQ2ipxTGXJZrvPKalG88BOqv+LLGMmzlQmIXvVLiCkjqywWE20j5sMJVlFmcMOQYoiGgFQcOlFjvNLOPKpO37nCijkcr5knbwhlmlDg5bh0RYwGUM05bFkzpt3QU5U3we0pL5dQ2S08GT1E2pOnOo7SNzeX1X8F39HVqnaWd7ura7fnhYh2Vr7rjaI+YsQzcxZzAC0upvA8reXMr7f4sA8t88Qm1G1IOo+TabTE7m5FJ3GffoWmszaIRBcqvA8148Chn05Ym6YDvTM208G/208LTXvoIykvPJRT/M+qbUTsrBSWF7hG3+jB/EkQQyrsORhUXlj8Y9cEEkgVvJINsD01pcpMXNf5v8JsPPQN/ZICPMalxKc3hBB6JULrI=----ATTACHMENT:----OTA0NjY4MjMwMzI4NDg5MCAyNDg3OTc1Mjg2NzUzNDE5IDk0NDI2MzQ2OTUyODU2NzU=