# Symfony FosUserBundle Kullanımı

> Kaynak: https://www.tasarimrehberi.net/symfony-fosuserbundle-kullanimi/
> Yazar: Nurettin Sezer
> Yayın: 2017-12-20 · Güncelleme: 2017-12-20

Symfony FosUserBundle Kullanımı

 

Konsolda yapılan işlemlerdir.

 

Kullanıcı adı ve şifre tanımlama:

 

```
php bin/console fos:user:create kullanici kullanici@tasarimrehberi.net sifre
```

 

Süper Admin Yapma:  
 php bin/console fos:user:create kullanici –super-admin[/php]

 

Kullanıcı Pasifleştirme:

 

```
php bin/console fos:user:create kullanici --inactive
```

 

Kullanıcı Aktifleştirme:

 

```
php bin/console fos:user:activate kullanici
```

 

Kullanıcıya admin hakkı tanıma:

 

```
php bin/console fos:user:promote kullanici ROLE_ADMIN
```

 

Kullanıcıya süper admin tanıma:

 

```
php bin/console fos:user:promote kullanici --super
```

 

Şifre Değiştirme:

 

```
php bin/console fos:user:change-password kullanici sifre
```
