onisep/ibexa-custom-settings-bundle
最新稳定版本:v3.0.0
Composer 安装命令:
composer require onisep/ibexa-custom-settings-bundle
包简介
README 文档
README
Symfony bundle for configuring custom parameters linked to an Ibexa location.
Details:
- Author: ONISEP / Florian Bouché
- Licence: MIT
Available translations:
- en (English): partial support
- fr (French): full support
Requirements
- php: >=8.3
- ibexa: ^5.0
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require onisep/ibexa-custom-settings-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Add Onisep\IbexaCustomSettingsBundle\IbexaCustomSettingsBundle::class => ['all' => true], in the config/bundles.php file.
Like this:
<?php return [ // ... Onisep\IbexaCustomSettingsBundle\IbexaCustomSettingsBundle::class => ['all' => true], // ... ];
Step 3: Import bundle routing file
# app/config/routing.yml or config/routing.yaml _ibexa_custom_settings: resource: '@IbexaCustomSettingsBundle/Resources/config/routing.yaml'
Step 4: Execute database migration
You can create a migration in your project from this example, then run it:
# migrations/Version20231004124944.php <?php namespace Onisep\migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; final class Version20231004124944 extends AbstractMigration { public function up(Schema $schema): void { $this->addSql('CREATE TABLE ibexa_custom_settings (id INT AUTO_INCREMENT NOT NULL, location_id INT NOT NULL, setting_key VARCHAR(300) NOT NULL, setting_value LONGTEXT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB;'); } }
Or if you prefer to run the SQL yourself :
CREATE TABLE ibexa_custom_settings ( id INT AUTO_INCREMENT NOT NULL, location_id INT NOT NULL, setting_key VARCHAR(300) NOT NULL, setting_value LONGTEXT NOT NULL, PRIMARY KEY (id) ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB;
License
This package is licensed under the MIT license.
统计信息
- 总下载量: 7.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-11