Download the PHP package senj/dynamic-subdomain-bundle without Composer
On this page you can find all versions of the php package senj/dynamic-subdomain-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download senj/dynamic-subdomain-bundle
More information about senj/dynamic-subdomain-bundle
Files in senj/dynamic-subdomain-bundle
Download senj/dynamic-subdomain-bundle
More information about senj/dynamic-subdomain-bundle
Files in senj/dynamic-subdomain-bundle
Vendor senj
Package dynamic-subdomain-bundle
Short Description Symfony3 Dynamic subdomain handler Bundle
License MIT
Homepage https://github.com/senj-gold/dynamic-subdomain-bundle
Package dynamic-subdomain-bundle
Short Description Symfony3 Dynamic subdomain handler Bundle
License MIT
Homepage https://github.com/senj-gold/dynamic-subdomain-bundle
Please rate this library. Is it a good library?
Informations about the package dynamic-subdomain-bundle
Dynamic subdomain handler for Symfony 3
Install
In composer.json
:
In app/AppKernel.php
:
Configure
In app/config.yaml
-
base_host
:- The domain base host, where all subdomains are attached
- required
- example:
domain.com
-
parameter_name
:- The name of the parameter that will be set on the current
Request
- optional
- default value:
subdomain
- The name of the parameter that will be set on the current
-
entity
:- The class or Doctrine alias of the entity mapped to subdomains
- required
- example:
Acme\DemoBundle\Entity\MySite
-
property
:- The name of the property storing the subdomain name in your entity
- optional
- default value:
subdomain
-
method
:- The name of method that will be called to get object with the property defined
- optional
- default value:
findOneBy
Use
- Create the entities mapped to your subdomains
- Get the current subdomain object through the Symfony
Request
object
In php, assuming that senj_dynamic_subdomain.property
equals subdomain
(the default value):
In twig, assuming that senj_dynamic_subdomain.property
equals subdomain
(the default value), and that the entity mapped to subdomains has a title
property:
Notes
If the subdomain is not found in the database, an exception will be thrown by the Bundle (Symfony\Component\HttpKernel\Exception\NotFoundHttpException
).
All versions of dynamic-subdomain-bundle with dependencies
PHP Build Version
Package Version
The package senj/dynamic-subdomain-bundle contains the following files
Loading the files please wait ....