- PHP 8.2 or higher
- Sulu 3.0 or higher
- Symfony 6.2 / 7.0 or higher
This bundle replaces the former manuxi/sulu-additional-account-data-bundle. If you are upgrading from the old bundle, please note:
- The composer package has been renamed from
manuxi/sulu-additional-account-data-bundletomanuxi/sulu-extended-account-bundle - The PHP namespace has changed from
Manuxi\SuluAdditionalAccountDataBundletoManuxi\SuluExtendedAccountBundle - The API route has changed from
/admin/api/additional-account-datato/admin/api/extended-account - The 12 individual string fields for opening hours (
monAm,monPm, etc.) have been replaced with 3 JSON fields (businessHours,publicHolidays,holidayDates)
Remove the old bundle before installing:
composer remove manuxi/sulu-additional-account-data-bundle
composer require manuxi/sulu-extended-account-bundlecomposer require manuxi/sulu-extended-account-bundleIf you are not using Symfony Flex, add the bundle manually in your config/bundles.php:
return [
//...
Manuxi\SuluExtendedAccountBundle\SuluExtendedAccountBundle::class => ['all' => true],
];Add the following to your config/routes/routes_admin.yaml:
SuluExtendedAccountBundle:
resource: '@SuluExtendedAccountBundle/Resources/config/routes_admin.yaml'The bundle extends the co_accounts table with additional columns. Preview the required SQL changes with:
php bin/console doctrine:schema:update --dump-sqlApply the changes with:
php bin/console doctrine:schema:update --forceImportant: Make sure you only process the schema updates related to this bundle.
The opening hours tab uses content types (business_hours, public_holidays, holiday_dates) from the SuluAdminExtrasBundle. Their JavaScript components must be registered in your project's admin assets to render properly.
Open the file assets/admin/package.json in your project root. Add the dependency for the AdminExtrasBundle:
{
"dependencies": {
"sulu-admin-extras-bundle": "file:../../vendor/manuxi/sulu-admin-extras-bundle/src/Resources"
}
}If you already have other bundle dependencies listed, simply add the
sulu-admin-extras-bundleline alongside them.
Open assets/admin/app.js and import the bundle:
import 'sulu-admin-extras-bundle';Run the following commands to install dependencies and compile the admin assets:
cd assets/admin
npm install
npm run build