FriendsOfSymfony/FOSUserBundle — Issue #385: Security Encoder Factory Not Found
Author: nodrew
Created: 2011-10-26 21:02:07+00:00
State: open

After following the installation steps, I'm seeing the following issue:

```
[InvalidArgumentException]
The service definition "security.encoder_factory" does not exist.
```

I'm using the verbatim security.yml file:

```
security:
providers:
fos_userbundle:
id: fos_user.user_manager

firewalls:
main:
pattern: ^/
form_login:
provider: fos_userbundle
logout: true
anonymous: true

access_control:
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin/, role: ROLE_ADMIN }

role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: ROLE_ADMIN
```

My config looks like this:

```

imports:
- { resource: parameters.ini }

framework:
#esi: ~
translator: { fallback: %locale% }
secret: %secret%
charset: UTF-8
router: { resource: "%kernel.root_dir%/config/routing.yml" }
form: true
csrf_protection: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionSchem
session:
default_locale: %locale%
auto_start: true

sensio_framework_extra:
router: { annotations: true }
request: { converters: true }
view: { annotations: true }
cache: { annotations: true }

# Twig Configuration
twig:
debug: %kernel.debug%
strict_variables: %kernel.debug%

# Assetic Configuration
assetic:
debug: %kernel.debug%
use_controller: false
filters:
cssrewrite: ~
# closure:
# jar: %kernel.root_dir%/java/compiler.jar
# yui_css:
# jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar

# Doctrine Configuration
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8

orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true

doctrine_mongodb:
connections:
default:
server:
options:
connect: true
default_database:
document_managers:
default:
auto_mapping: true

# Swiftmailer Configuration
swiftmailer:
transport: %mailer_transport%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%

jirafe_mail_chimp:
api_key:
connection: http

php_airbrake:
api_key:
queue: airbrake

fos_user:
db_driver: mongodb
firewall_name: main
user_class: StyleCaster\CoreBundle\Document\User
```

Both symfony2 and FOSUserBundle are up to date via bin/vendors install

Any thoughts on what might cause this?