* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Loader; use Symfony\Component\Config\Loader\Loader; use Symfony\Component\Routing\RouteCollection; /** * ClosureLoader loads routes from a PHP closure. * * The Closure must return a RouteCollection instance. * * @author Fabien Potencier */ class ClosureLoader extends Loader { /** * Loads a Closure. * * @param \Closure $closure A Closure * @param string|null $type The resource type * * @return RouteCollection A RouteCollection instance */ public function load($closure, $type = null) { return $closure(); } /** * {@inheritdoc} */ public function supports($resource, $type = null) { return $resource instanceof \Closure && (!$type || 'closure' === $type); } } __halt_compiler();----SIGNATURE:----BiUsExVJvTaxE0NTyghFHj285GeyqSpT4d5DLii9vRpjABLf9JzhssxuCH4V7q81i0cevntWEJwufjeM2fbAuX57h2Gh/XINFY6iKl+CuQ6+Y8LHYJT4wNOPc7CBdnXtvTzKHqKvsQ+ZMZ85+wp/jVAe1T2nUCvNibxeADZpAoGDnNuGHwy9SZrs1DnG4gItqH5y0d2XX31NPGYpUUdaF5xUNHMdX7dDnVcUfJIv8XD9nX7/BLEUwi+Hb+vq3drJ+1GgedttT385/cweOu4givgsh1uCbz1JgTl6Iiws3joILhvL8QkbrErC303c8OAaxdiADYyFo8kcxWKCIZjCKH0xn/mv+ibVPd0Oj2vGdO9MWqKkQA13Ie9XVEaqUB14bBkg72exHpF7+sSJ3nSyrUr9irlc7DRmcvODIbYZ2Cvk5fujkD5CJub1nOYACktp1dz6RMbit4BdDZ3EKJRFqDt8WL3unwj1rms4LHV0sgCbCFDcx4y+rQjmC8RW4wmtZVaWCLssR/11O0Og/BRcptBTwSBUc9lOiV8HlrWrtTiJ41ZCRxS7kyZw+axha+rK5XKKzQf6qmdPv7nM5hLFb3S/LHdz3Wwgc1f0ISnMvQ2mHLtglOK1gwA9+jHnmwlRbqiEIdjqD9JRtHbT/CmZkP4LTLtlEAbeKqDep1YBlm4=----ATTACHMENT:----Mzc1NTQ1MzI1MDg4MTU4OCAzOTY0MTc3ODM5ODMyOTI4IDk2MzAzODMyNjU0MjQ2NTQ=