Skip to content

Commit a4fa850

Browse files
committed
fix
1 parent 090d5fe commit a4fa850

File tree

8 files changed

+69
-2
lines changed

8 files changed

+69
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
/vendor/
3+
composer.lock

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# symfony-user-permission
2-
The permissions system for users in symfony
2+
3+
```console
4+
composer require ggbb/symfony-user-permission
5+
```

composer.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,16 @@
2323
"email": "devggbb@gmail.com"
2424
}
2525
],
26-
"minimum-stability": "stable"
26+
"minimum-stability": "stable",
27+
"config": {
28+
"allow-plugins": {
29+
"symfony/flex": true
30+
}
31+
},
32+
"scripts": {
33+
"auto-scripts": {
34+
"cache:clear": "symfony-cmd",
35+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
36+
}
37+
}
2738
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Ggbb\SymfonyUserPermission\DependencyInjection;
4+
5+
use Symfony\Component\Config\FileLocator;
6+
use Symfony\Component\DependencyInjection\ContainerBuilder;
7+
use Symfony\Component\DependencyInjection\Extension\Extension;
8+
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
9+
use Exception;
10+
11+
class UserPermissionBundleExtension extends Extension
12+
{
13+
/**
14+
* @throws Exception
15+
*/
16+
public function load(array $configs, ContainerBuilder $container): void
17+
{
18+
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
19+
$loader->load('services.yaml');
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Ggbb\SymfonyUserPermission\Entity\Interface;
4+
5+
interface UserPermissionInterface
6+
{
7+
8+
}

src/Entity/UserRole.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Ggbb\SymfonyUserPermission\Entity;
4+
5+
class UserRole
6+
{
7+
8+
}

src/GgbbUserPermissionBundle.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Ggbb\SymfonyUserPermission;
4+
5+
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
6+
7+
class GgbbUserPermissionBundle extends AbstractBundle
8+
{
9+
public function getPath(): string
10+
{
11+
return \dirname(__DIR__);
12+
}
13+
}

src/Resources/config/services.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parameters:
2+
ggbb_user_permission.author.email: 'devggbb@gmail.com'

0 commit comments

Comments
 (0)