Skip to content

Commit

Permalink
Renamed to settings bundle and changed all namespaces and related cla…
Browse files Browse the repository at this point in the history
…ss names
  • Loading branch information
jbtronics committed Dec 27, 2023
1 parent 7b56581 commit 8c91041
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"scheb/2fa-bundle": "^6.8.0",
"scheb/2fa-google-authenticator": "^6.8.0",
"scheb/2fa-trusted-device": "^6.8.0",
"sherlockode/configuration-bundle": "*",
"shivas/versioning-bundle": "^4.0",
"spatie/db-dumper": "^3.3.1",
"symfony/apache-pack": "^1.0",
Expand Down
48 changes: 47 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
Sherlockode\ConfigurationBundle\SherlockodeConfigurationBundle::class => ['all' => true],
];
3 changes: 3 additions & 0 deletions config/packages/sherlockode_configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sherlockode_configuration:
entity_class:
parameter: App\Entity\Parameter
24 changes: 24 additions & 0 deletions src/Entity/ConfigParameter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;
use Sherlockode\ConfigurationBundle\Model\Parameter as BaseParameter;

#[Entity]
#[Table('config_parameters')]
class ConfigParameter extends BaseParameter
{
#[ORM\Id()]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
protected $id;

#[ORM\Column(type: 'string', length: 255)]
protected $path;

#[ORM\Column(type: 'text', length: 255, nullable: true)]
protected $value;
}
3 changes: 3 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@
"sebastian/diff": {
"version": "3.0.2"
},
"sherlockode/configuration-bundle": {
"version": "v0.6.0"
},
"shivas/versioning-bundle": {
"version": "3.1.3"
},
Expand Down

0 comments on commit 8c91041

Please sign in to comment.