protected function findConfiguration($value, \Closure $func)
    {
        /** @var AbstractPageRouteConfiguration $configuration */
        foreach ($this->all() as $configuration) {
            if ($func($configuration, $value)) {
                return $configuration;
            }
        }

        return null;
    }
protected function findConfiguration($value, \Closure $func)
    {
        /** @var AbstractPageRouteConfiguration $configuration */
        foreach ($this->all() as $configuration) {
            if ($func($configuration, $value)) {
                return $configuration;
            }
        }

        return null;
    }
protected function findConfiguration ( $ value , \ Closure $ func ) { /** @var AbstractPageRouteConfiguration $configuration */ foreach ( $ this -> all ( ) as $ configuration ) { if ( $ func ( $ configuration , $ value ) ) { return $ configuration ; } } return null ; }
Find a configuration matching custom criteria

@param string    $value
@param callable $func

@return null|AbstractPageRouteConfiguration
Find a configuration matching custom criteria