Skip to content

Commit

Permalink
Moved certain classes to AdminBundle (pimcore#14642)
Browse files Browse the repository at this point in the history
* Moved certain classes to AdminBundle - resolves pimcore#14605

* Moved certain classes to AdminBundle - resolves pimcore#14605

* Moved certain classes to AdminBundle - resolves pimcore#14605

* Moved certain classes to AdminBundle - resolves pimcore#14605

* Review changes

* Moved certain classes to AdminBundle - based on refactoring from 10.6

* Remove autoload.php from composer.json

* Fix README.md

* Fix AdminEvents usages

* Fix LogoutEvent usages

* Fix Docs

* Move back ImageChart.php

* Add project files
  • Loading branch information
dvesh3 authored Mar 31, 2023
1 parent 8f5db67 commit 83ce397
Show file tree
Hide file tree
Showing 153 changed files with 1,592 additions and 823 deletions.
21 changes: 21 additions & 0 deletions bundles/AdminBundle/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4

[*.php]
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 4

[composer.json]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions bundles/AdminBundle/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

* -text
68 changes: 68 additions & 0 deletions bundles/AdminBundle/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.DS_Store
Thumbs.db
*.log

# symfony default
/.web-server-pid
/app/config/parameters.yml
/build/
/phpunit.xml
/web/bundles/

# local config
!/app/config/local
/app/config/local/*
!app/config/local/.gitkeep

# pimcore legacy (remove this for your own development)
!/legacy
/legacy/*
!legacy/.gitkeep
!legacy/bundle

/var/*
!/var/.gitkeep
!/var/classes/
/var/classes/DataObject

!/var/config
/var/config/system.php
/var/config/debug-mode.php
/var/config/maintenance.php

# project specific recommendations
/var/config/tag-manager.php
/var/config/reports.php


/web/var/

# PHP-CS-Fixer
/.php_cs
/.php_cs.cache

# composer
/composer.lock
!/vendor
/vendor/*
!/vendor/.gitkeep

# PhpStorm / IDEA
.idea
.idea_modules
# NetBeans
nbproject

node_modules/

# codeception (only stage *.dist.yml config files)
/codeception.yml
/pimcore/codeception.yml
/pimcore/tests/*.suite.yml
/pimcore/tests/_output/*
/pimcore/tests/_support/_generated/*

# keep legacy paths ignored for easier migration
/plugins/
/tools/
/website/
71 changes: 71 additions & 0 deletions bundles/AdminBundle/.php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in([__DIR__ . '/src'])

// do not fix views
->notName('*.html.php');

return PhpCsFixer\Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],

'header_comment' => [
'commentType' => 'PHPDoc',
'header' => 'Pimcore' . PHP_EOL . PHP_EOL .
'This source file is available under two different licenses:' . PHP_EOL .
'- GNU General Public License version 3 (GPLv3)' . PHP_EOL .
'- Pimcore Commercial License (PCL)' . PHP_EOL .
'Full copyright and license information is available in' . PHP_EOL .
'LICENSE.md which is distributed with this source code.' . PHP_EOL .
PHP_EOL .
' @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)' . PHP_EOL .
' @license http://www.pimcore.org/license GPLv3 and PCL'
],

// keep aligned = and => operators as they are: do not force aligning, but do not remove it
'binary_operator_spaces' => ['align_double_arrow' => null, 'align_equals' => null],

'blank_line_before_return' => true,
'encoding' => true,
'function_typehint_space' => true,
'hash_to_slash_comment' => true,
'lowercase_cast' => true,
'magic_constant_casing' => true,
'method_argument_space' => ['ensure_fully_multiline' => false],
'method_separation' => true,
'native_function_casing' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_extra_consecutive_blank_lines' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_short_bool_cast' => true,
'no_spaces_around_offset' => true,
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'object_operator_without_whitespace' => true,
'ordered_imports' => true,
'phpdoc_indent' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'return_type_declaration' => true,
'self_accessor' => true,
'short_scalar_cast' => true,
'single_blank_line_before_namespace' => true,
'single_quote' => true,
'space_after_semicolon' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
])
->setFinder($finder);
36 changes: 36 additions & 0 deletions bundles/AdminBundle/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# License
Copyright (C) Pimcore GmbH

This software is available under two different licenses:
* GNU General Public License version 3 (GPLv3) as Pimcore Community Edition
* Pimcore Commercial License (PCL)

The default Pimcore license, without a valid Pimcore Commercial License agreement, is the Open-Source GPLv3 license.

## GNU General Public License version 3 (GPLv3)
If you decide to choose the GPLv3 license, you must comply with the following terms:

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

## Pimcore Commercial License (PCL)
Alternatively, commercial and supported versions of the program - also known as
Commercial Distributions - must be used in accordance with the terms and conditions
contained in a separate written agreement between you and Pimcore GmbH.
For more information about the Pimcore Commercial License (PCL) please contact [email protected].



Please see also (files in this directory):
- [Licensing FAQ - license-faq.md](https://github.com/pimcore/pimcore/blob/master/license-faq.md)
- [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - gpl-3.0.txt](gpl-3.0.txt)
32 changes: 32 additions & 0 deletions bundles/AdminBundle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Pimcore Admin Classic Bundle

The Admin Classic Bundle provides a Backend UI for Pimcore.
It is based on the [ExtJS](https://www.sencha.com/products/extjs/) framework.

The Admin Bundle is a core bundle of Pimcore and is shipped with every Pimcore installation.
Therefore, it is not necessary to install it separately.

## Provided Functionality in a Nutshell
- Documents: Content Management System for managing and editing content for your website.
- Data Objects: Manage and edit data objects for PIM, MDM, DAM, CRM, ERP, etc.
- Assets: Data Asset Management for managing and editing files, images, videos, etc.
- Settings: Generic settings for data types, system settings, etc.
- Users & Roles: Manage users and roles for granting access to the system.
- Reports: Create and Manage reports for your data.
- Search: Search across all elements in the system.
- Workflows: Create and manage workflows for your data.
And much more ...


For a first impression have a look at our [Demo App](https://demo.pimcore.fun/admin) with credentials `user: admin` and `pass: demo`.

## Working With Admin Interface

Following topics are short-cuts into the documentation for admin interface:

- [Getting Started](https://github.com/pimcore/pimcore/blob/11.x/doc/01_Getting_Started/06_Create_a_First_Project.md)
- [User & Roles](https://github.com/pimcore/pimcore/blob/11.x/doc/22_Administration_of_Pimcore/07_Users_and_Roles.md)
- [Deeplinks](https://github.com/pimcore/pimcore/blob/11.x/doc/20_Extending_Pimcore/23_Deeplinks_into_Admin_Interface.md)
- [Admin Translations](https://github.com/pimcore/pimcore/blob/11.x/doc/06_Multi_Language_i18n/07_Admin_Translations.md)
- [Extending Admin UI](https://github.com/pimcore/pimcore/blob/11.x/doc/20_Extending_Pimcore/13_Bundle_Developers_Guide/06_Event_Listener_UI.md)

20 changes: 20 additions & 0 deletions bundles/AdminBundle/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Security Policy

## Reporting a Vulnerability

If you think that you have found a security issue,
don’t use the bug tracker and don’t publish it publicly.
Instead, all security issues must be reported via 📫 to [[email protected]](mailto:[email protected]).


## Resolving Process
Every submitted security issue is handled with top priority by following these steps:

1. Confirm the vulnerability
2. Determine the severity
3. Contact reporter
4. Work on a patch
5. Get a CVE identification number (may be done by the reporter or a security service provider)
6. Patch reviewing
7. Tagging a new release for supported versions
8. Publish security announcement
6 changes: 6 additions & 0 deletions bundles/AdminBundle/config/event_listeners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ services:
- { name: monolog.logger, channel: admin_statistics }

Pimcore\Bundle\AdminBundle\EventListener\EnablePreviewTimeSliderListener: ~

#
# Workflows
#
Pimcore\Bundle\AdminBundle\EventListener\WorkflowManagementListener:
public: true # can be disabled
Loading

0 comments on commit 83ce397

Please sign in to comment.