Download the PHP package octopouce-mu/admin-bundle without Composer
On this page you can find all versions of the php package octopouce-mu/admin-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package admin-bundle
OctopouceAdminBundle
Prerequisites
This version of the bundle requires Symfony Flex (>= 4.0) and PHP 7. You want to use Doctrine ORM and MySQL.
Translations
If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.
Add the vendor KNP Doctrine Behaviors in bundles.php
For more information about translations, check Symfony documentation.
Installation
- Download OctopouceAdminBundle using composer
- Create your User and Invitation class
- Update your database schema
- Import OctopouceAdminBundle routing
- Publish the Assets
- Configure your file security
- Generate Data Fixtures
- Configure your .env
Step 1: Download OctopouceAdminBundle using composer
Require the bundle with composer:
Step 2: Create your User and Invitation class
The goal of this bundle is to persist some User
class to a database.
Your first job, then, is to create the User
and Invitation
class
for your application. This class can look and act however you want: add any
properties or methods you find useful. This is your User
& Invitation
class.
The bundle provides base classes which are already mapped for most fields to make it easier to create your entity. Here is how you use it:
- Extend the base class (from the
Model
folder if you are using any of the doctrine variants) - Map the
id
field. It must be protected as it is inherited from the parent class.
Note
The doc uses a bundle named AppBundle
according to the Symfony best
practices. However, you can of course place your user class in the bundle
you want.
Caution:
If you override the construct() method in your User class, be sure to call parent::construct(), as the base User class depends on this to initialize some fields.
a) Doctrine ORM User class
If you're persisting your users via the Doctrine ORM, then your User
class
should live in the Entity
namespace of your bundle and look like this to
start:
b) Doctrine ORM Invitation class
If you're persisting your users via the Doctrine ORM, then your Invitation
class
should live in the Entity
namespace of your bundle and look like this to
start:
Step 3: Update your database schema
For ORM run the following command.
Caution
If error "1071 Specified key was too long; max key length is 767 bytes", you change configs doctrine :
Step 4: Import OctopouceAdminBundle routing files
Now that you have activated and configured the bundle, all that is left to do is import the OctopouceAdminBundle routing files if Symfony Flex hasn't already imported the file.
Step 5: Publish the Assets
Step 6: Configure your file security
a. Configure default for admin and user
Step 7: Generate Data Fixtures
The bundle need data default for working so uou can to generate fixtures data in database :
Step 8: Configure your .env
For finish the configuration of OctopouceAdminBundle, you can to configure package dependencies in .env.
Others bundles
You can to add bundles with OctopouceAdminBundle :
All versions of admin-bundle with dependencies
symfony/framework-bundle Version ^3.4|^4.0
symfony/form Version ^3.4|^4.0
symfony/asset Version ^3.4|^4.0
symfony/security-bundle Version ^3.4|^4.0
symfony/swiftmailer-bundle Version ^3.1
symfony/orm-pack Version *
symfony/yaml Version ^3.4|^4.0
symfony/twig-bundle Version ^3.4|^4.0
symfony/translation Version ^3.4|^4.0
doctrine/doctrine-fixtures-bundle Version ^3.0
twig/extensions Version ^1.5
sensio/framework-extra-bundle Version ^5.1
stof/doctrine-extensions-bundle Version ^1.3
facebook/graph-sdk Version ^5.6
google/apiclient Version ^2.2
friendsofsymfony/jsrouting-bundle Version ^2.2