Skip to content

Commit 3d5ce02

Browse files
committed
Docker updates
1 parent 713ffd2 commit 3d5ce02

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ RUN mkdir -p app/SCIM && cat > app/SCIM/CustomSCIMConfig.php <<'EOM'
8989
namespace App\SCIM;
9090

9191
use ArieTimmerman\Laravel\SCIMServer\SCIMConfig as BaseSCIMConfig;
92+
use App\Models\Group;
9293

9394
class CustomSCIMConfig extends BaseSCIMConfig
9495
{
95-
public function getGroupConfig()
96+
public function getGroupClass()
9697
{
97-
$config = parent::getGroupConfig();
98-
$config['class'] = \App\Models\Group::class;
99-
return $config;
98+
return Group::class;
10099
}
101100
}
102101
EOM

src/SCIMConfig.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ protected function doRead(&$object, $attributes = [])
7676
{
7777
return (string)$object->id;
7878
}
79+
public function remove($value, &$object, $path = null)
80+
{
81+
// do nothing
82+
}
7983
}
8084
),
8185
new Meta('Users'),
@@ -165,6 +169,10 @@ protected function doRead(&$object, $attributes = [])
165169
{
166170
return (string)$object->id;
167171
}
172+
public function remove($value, &$object, $path = null)
173+
{
174+
// do nothing
175+
}
168176
}
169177
),
170178
new Meta('Groups'),

0 commit comments

Comments
 (0)