__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Ldap\Adapter; use Symfony\Component\OptionsResolver\Options; use Symfony\Component\OptionsResolver\OptionsResolver; /** * @author Charles Sarrazin <[email protected]> */ abstract class AbstractConnection implements ConnectionInterface { protected $config; public function __construct(array $config = []) { $resolver = new OptionsResolver(); $this->configureOptions($resolver); $this->config = $resolver->resolve($config); } protected function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'host' => 'localhost', 'version' => 3, 'connection_string' => null, 'encryption' => 'none', 'options' => [], ]); $resolver->setDefault('port', function (Options $options) { return 'ssl' === $options['encryption'] ? 636 : 389; }); $resolver->setDefault('connection_string', function (Options $options) { return sprintf('ldap%s://%s:%s', 'ssl' === $options['encryption'] ? 's' : '', $options['host'], $options['port']); }); $resolver->setAllowedTypes('host', 'string'); $resolver->setAllowedTypes('port', 'numeric'); $resolver->setAllowedTypes('connection_string', 'string'); $resolver->setAllowedTypes('version', 'numeric'); $resolver->setAllowedValues('encryption', ['none', 'ssl', 'tls']); $resolver->setAllowedTypes('options', 'array'); } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ExtLdap | Folder | 0775 |
|
|
| AbstractConnection.php | File | 1.72 KB | 0664 |
|
| AbstractQuery.php | File | 1.58 KB | 0664 |
|
| AdapterInterface.php | File | 992 B | 0664 |
|
| CollectionInterface.php | File | 616 B | 0664 |
|
| ConnectionInterface.php | File | 1.19 KB | 0664 |
|
| EntryManagerInterface.php | File | 1.52 KB | 0664 |
|
| QueryInterface.php | File | 1020 B | 0664 |
|