- Notifications
You must be signed in to change notification settings - Fork57
[READ-ONLY] Contao Core Bundle
License
contao/core-bundle
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Contao is an Open Source PHP Content Management System for people who want a professional website that is easy tomaintain. Visit theproject website for more information.
Contao has been designed as aSymfony bundle, which can be used to add CMS functionality to any Symfonyapplication. If you do not have an existing Symfony application yet, we recommend using theContao managed editionas basis for your application.
The Contao core bundle has a recipe in thesymfony/recipes-contrib repository. Be sure to either enable contribrecipes for your project by running the following command or follow the instructions to use the contrib recipe duringthe installation process.
composer config extra.symfony.allow-contrib true
Add thecontao-component-dir
to theextra
section of yourcomposer.json
file.
composer config extra.contao-component-dir assets
Install Contao and all its dependencies by executing the following command:
composer require \ contao/core-bundle:4.8.* \ php-http/guzzle6-adapter:^1.1
Note that you can exchange thephp-http/guzzle6-adapter
package with any otherHTTP client implementation. If youalready have an HTTP client implementation, you can omit the package entirely.
Configure theDATABASE_URL
in your environment, either using environment variables or by using theDotenv component.
Enable ESI in theconfig/packages/framework.yaml
file.
framework:esi:true
Add the Contao routes to yourconfig/routing.yaml
file, and be sure to load theContaoCoreBundle
at the very end, sothe catch-all route does not catch your application routes.
ContaoCoreBundle:resource:"@ContaoCoreBundle/config/routes.yaml"
Edit yourconfig/security.yaml
file and merge all theproviders
,encoders
,firewalls
andaccess_control
sections:
security:password_hashers:Contao\User:autoSymfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:autoproviders:contao.security.backend_user_provider:id:contao.security.backend_user_providercontao.security.frontend_user_provider:id:contao.security.frontend_user_providerfirewalls:contao_backend:request_matcher:contao.routing.backend_matcherprovider:contao.security.backend_user_provideruser_checker:contao.security.user_checkerswitch_user:truelogin_throttling:~webauthn:authentication:enabled:trueprofile:contao_backendroutes:options_path:/_contao/login/webauthn/optionsresult_path:/_contao/login/webauthn/resultlogin_link:check_route:contao_backend_login_linksignature_properties:[username, lastLogin]success_handler:contao.security.authentication_success_handlercontao_login:remember_me:falselogout:path:contao_backend_logoutcontao_frontend:request_matcher:contao.routing.frontend_matcherprovider:contao.security.frontend_user_provideruser_checker:contao.security.user_checkeraccess_denied_handler:contao.security.access_denied_handlerswitch_user:falselogin_throttling:~contao_login:remember_me:trueremember_me:secret:'%kernel.secret%'remember_me_parameter:autologintoken_provider:doctrine:truelogout:path:contao_frontend_logoutaccess_control: -{ path: ^%contao.backend.route_prefix%/login$, roles: PUBLIC_ACCESS } -{ path: ^%contao.backend.route_prefix%/logout$, roles: PUBLIC_ACCESS } -{ path: ^%contao.backend.route_prefix%(/|$), roles: ROLE_USER } -{ path: ^/, roles: [PUBLIC_ACCESS] }
The Contao core-bundle is now installed and activated. Use thecontao:migrate
command to upgrade the database and thecontao:user:create
command to create your first back end user.
Contao is licensed under the terms of the LGPLv3.
Visit thesupport page to learn about the available support options.
About
[READ-ONLY] Contao Core Bundle