mirror of
https://github.com/tchapi/davis.git
synced 2025-04-11 08:02:21 +02:00
Fix some style and comments, improve README
This commit is contained in:
parent
fc638132c8
commit
cb45d99f63
@ -1,7 +1,7 @@
|
||||
Davis
|
||||
---
|
||||
|
||||
A simple, fully translatable admin interface for `sabre/dav` based on Symfony 4.
|
||||
A simple, fully translatable admin interface for `sabre/dav` based on [Symfony 4](https://symfony.com/) and [Bootstrap 4](https://getbootstrap.com/), largely inspired by [Baïkal](https://github.com/sabre-io/Baikal).
|
||||
|
||||
# Requirements
|
||||
|
||||
|
@ -60,18 +60,13 @@ class DAVController extends AbstractController
|
||||
{
|
||||
$pdo = $this->get('doctrine')->getEntityManager()->getConnection()->getWrappedConnection();
|
||||
|
||||
// $pdo = new \PDO('sqlite:data/db.sqlite');
|
||||
// $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
/**
|
||||
* The backends. Yes we do really need all of them.
|
||||
*
|
||||
* This allows any developer to subclass just any of them and hook into their
|
||||
* own backend systems.
|
||||
* The backends.
|
||||
*/
|
||||
$authBackend = new \Sabre\DAV\Auth\Backend\PDO($pdo);
|
||||
$authBackend->setRealm($this->authRealm);
|
||||
$principalBackend = new \Sabre\DAVACL\PrincipalBackend\PDO($pdo);
|
||||
|
||||
/**
|
||||
* The directory tree.
|
||||
*
|
||||
|
@ -18,8 +18,8 @@ class UserType extends AbstractType
|
||||
{
|
||||
$builder
|
||||
->add('username', TextType::class, [
|
||||
'disabled' => !$options['new'],
|
||||
'label' => 'form.username',
|
||||
'disabled' => !$options['new'],
|
||||
'help' => 'form.username.help',
|
||||
])
|
||||
->add('displayName', TextType::class, [
|
||||
|
Loading…
x
Reference in New Issue
Block a user