src/ConfigLoader.php
final public function loadDefaultSecurity(LoaderInterface $loader)
    {
        /* Load default security configuration file */
        if (file_exists($this->getConfigDir() . '/security.yml') === false
            && file_exists($this->getConfigDir() . '/security_' . $this->getEnvironment() . '.yml') === false
        ) {
            $loader->load($this->getDefaultConfigDirectory() . '/security.yml');
        }
    }
final public function loadDefaultSecurity(LoaderInterface $loader)
    {
        /* Load default security configuration file */
        if (file_exists($this->getConfigDir() . '/security.yml') === false
            && file_exists($this->getConfigDir() . '/security_' . $this->getEnvironment() . '.yml') === false
        ) {
            $loader->load($this->getDefaultConfigDirectory() . '/security.yml');
        }
    }
@param LoaderInterface $loader

@throws \Exception