-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08bb0ee
commit 94f170e
Showing
119 changed files
with
1,496 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
@import "partials/list"; | ||
@import "partials/login"; | ||
@import "partials/header"; | ||
@import "partials/table"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.admin-table.table { | ||
@for $i from 1 through 3 { | ||
.column-button-#{$i} { | ||
min-width: $i * 130px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,21 @@ | ||
services: | ||
LAG\AdminBundle\Controller\Security\Login: | ||
arguments: | ||
$formFactory: '@form.factory' | ||
$environment: '@twig' | ||
$authenticationUtils: '@security.authentication_utils' | ||
tags: ['controller.service_arguments'] | ||
|
||
LAG\AdminBundle\Controller\Index: | ||
arguments: | ||
$uriVariablesExtractor: '@lag_admin.request_uri_variables_extractor' | ||
$contextProvider: '@lag_admin.request.context_provider' | ||
$dataProvider: '@lag_admin.state.data_provider' | ||
$formFactory: '@form.factory' | ||
$gridFactory: '@lag_admin.grid.factory' | ||
$environment: '@twig' | ||
tags: ['controller.service_arguments'] | ||
|
||
LAG\AdminBundle\Controller\Create: | ||
arguments: | ||
$uriVariablesExtractor: '@lag_admin.request_uri_variables_extractor' | ||
$contextProvider: '@lag_admin.request.context_provider' | ||
$dataProvider: '@lag_admin.state.data_provider' | ||
$dataProcessor: '@lag_admin.state.data_processor' | ||
$formFactory: '@form.factory' | ||
$environment: '@twig' | ||
$urlGenerator: '@lag_admin.routing.url_generator' | ||
tags: [ 'controller.service_arguments' ] | ||
|
||
LAG\AdminBundle\Controller\Update: | ||
LAG\AdminBundle\Controller\Resource\ResourceController: | ||
arguments: | ||
$uriVariablesExtractor: '@lag_admin.request_uri_variables_extractor' | ||
$contextProvider: '@lag_admin.request.context_provider' | ||
$dataProvider: '@lag_admin.state.data_provider' | ||
$dataProcessor: '@lag_admin.state.data_processor' | ||
$formFactory: '@form.factory' | ||
$environment: '@twig' | ||
$urlGenerator: '@lag_admin.routing.url_generator' | ||
$responseHandler: '@RedirectionHandler' | ||
tags: ['controller.service_arguments'] | ||
|
||
LAG\AdminBundle\Controller\Delete: | ||
LAG\AdminBundle\Controller\Resource\ResourceCollectionController: | ||
arguments: | ||
$uriVariablesExtractor: '@lag_admin.request_uri_variables_extractor' | ||
$contextProvider: '@lag_admin.request.context_provider' | ||
$dataProvider: '@lag_admin.state.data_provider' | ||
$dataProcessor: '@lag_admin.state.data_processor' | ||
$formFactory: '@form.factory' | ||
$gridFactory: '@lag_admin.grid.factory' | ||
$environment: '@twig' | ||
$urlGenerator: '@lag_admin.routing.url_generator' | ||
tags: [ 'controller.service_arguments' ] | ||
tags: ['controller.service_arguments'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,51 @@ | ||
services: | ||
lag_admin.resource.dispatcher: '@LAG\AdminBundle\Event\Dispatcher\ResourceEventDispatcher' | ||
|
||
# Resource listeners | ||
LAG\AdminBundle\EventListener\Resource\ResourceCreateListener: | ||
arguments: | ||
$routeNameGenerator: '@lag_admin.routing.route_name_generator' | ||
$applicationConfiguration: '@lag_admin.application' | ||
tags: | ||
- { name: kernel.event_listener, event: lag_admin.resource.create, priority: 255 } | ||
- {name: kernel.event_listener, event: lag_admin.resource.create, priority: 255} | ||
|
||
LAG\AdminBundle\EventListener\Resource\ResourceCreatedListener: | ||
arguments: | ||
$routeNameGenerator: '@lag_admin.routing.route_name_generator' | ||
tags: | ||
- { name: kernel.event_listener, event: lag_admin.resource.created, priority: 255 } | ||
- {name: kernel.event_listener, event: lag_admin.resource.created, priority: 255} | ||
|
||
# Operation listeners | ||
LAG\AdminBundle\EventListener\Operation\OperationCreateListener: | ||
LAG\AdminBundle\EventListener\Operation\DefaultOperationListener: | ||
tags: | ||
- { name: kernel.event_listener, event: lag_admin.operation.create, priority: 255 } | ||
- {name: kernel.event_listener, event: lag_admin.operation.create, priority: 255} | ||
|
||
LAG\AdminBundle\EventListener\Operation\OperationPathListener: | ||
tags: | ||
- { name: kernel.event_listener, event: lag_admin.operation.create, priority: -255 } | ||
- {name: kernel.event_listener, event: lag_admin.operation.create, priority: -255} | ||
|
||
# Security listeners | ||
LAG\AdminBundle\EventListener\Security\RequestListener: | ||
LAG\AdminBundle\EventListener\Security\OperationPermissionListener: | ||
arguments: | ||
$resourceContext: '@lag_admin.resource.context' | ||
$security: '@security.helper' | ||
tags: | ||
- { name: kernel.event_listener, event: kernel.controller_arguments, priority: 0 } | ||
- {name: kernel.event_listener, event: kernel.request} | ||
|
||
# Data listeners | ||
LAG\AdminBundle\EventListener\Data\TimestampableListener: | ||
tags: | ||
- { name: kernel.event_listener, event: lag_admin.data.process, priority: 255 } | ||
- {name: kernel.event_listener, event: lag_admin.data.process, priority: 255} | ||
|
||
LAG\AdminBundle\EventListener\Data\SlugListener: | ||
arguments: | ||
$generator: '@lag_admin.slug.generator' | ||
$mapping: '@LAG\AdminBundle\Slug\Mapping\SlugMapping' | ||
tags: | ||
- { name: kernel.event_listener, event: lag_admin.data.process, priority: 255 } | ||
- {name: kernel.event_listener, event: lag_admin.data.process, priority: 255} | ||
|
||
# Dispatcher | ||
LAG\AdminBundle\Event\Dispatcher\ResourceEventDispatcherInterface: '@LAG\AdminBundle\Event\Dispatcher\ResourceEventDispatcher' | ||
LAG\AdminBundle\Event\Dispatcher\ResourceEventDispatcher: | ||
arguments: | ||
$eventDispatcher: '@event_dispatcher' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
services: | ||
lag_admin.security.helper: '@LAG\AdminBundle\Security\Helper\SecurityHelper' | ||
LAG\AdminBundle\Security\Helper\SecurityHelper: | ||
# Voters | ||
LAG\AdminBundle\Security\Voter\OperationPermissionVoter: | ||
arguments: | ||
$security: '@security.helper' | ||
$registry: '@lag_admin.resource.registry' | ||
tags: ['security.voter'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
services: | ||
lag_admin.state.data_provider: '@LAG\AdminBundle\State\DataProviderInterface' | ||
LAG\AdminBundle\State\DataProviderInterface: | ||
class: LAG\AdminBundle\State\CompositeDataProvider | ||
lag_admin.state.data_provider: '@LAG\AdminBundle\State\Provider\DataProviderInterface' | ||
lag_admin.state.data_processor: '@LAG\AdminBundle\State\Processor\DataProcessorInterface' | ||
|
||
# Data providers | ||
LAG\AdminBundle\State\Provider\DataProviderInterface: | ||
class: LAG\AdminBundle\State\Provider\CompositeDataProvider | ||
arguments: | ||
$providers: !tagged_iterator lag_admin.data_provider | ||
|
||
lag_admin.state.data_processor: '@LAG\AdminBundle\State\DataProcessorInterface' | ||
LAG\AdminBundle\State\DataProcessorInterface: | ||
class: LAG\AdminBundle\State\CompositeDataProcessor | ||
LAG\AdminBundle\State\Provider\JsonDataProviderDecorator: | ||
decorates: lag_admin.state.data_provider | ||
arguments: | ||
$processors: !tagged_iterator lag_admin.data_processor | ||
$decorated: '@.inner' | ||
$serializer: '@serializer' | ||
|
||
LAG\AdminBundle\State\EventDataProcessor: | ||
decorates: 'lag_admin.state.data_processor' | ||
# Data processors | ||
LAG\AdminBundle\State\Processor\DataProcessorInterface: | ||
class: LAG\AdminBundle\State\Processor\CompositeDataProcessor | ||
arguments: | ||
$decorated: '@.inner' | ||
$eventDispatcher: '@event_dispatcher' | ||
$processors: !tagged_iterator lag_admin.data_processor | ||
$eventDispatcher: '@lag_admin.resource.dispatcher' |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.