Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bluvulture committed Jan 24, 2024
1 parent 4c449ce commit edae75c
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .github/ci/files/config/bundles.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return [
'Pimcore\\Bundle\\xTemplateBundlex\\PimcorexTemplateBundlex' => ['all' => true],
'Pimcore\\Bundle\\StudioApiBundle\\PimcoreStudioApiBundle' => ['all' => true],
];
6 changes: 3 additions & 3 deletions .github/ci/files/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ services:
#
# INSTALLER
#
Pimcore\Bundle\xTemplateBundlex\Installer:
Pimcore\Bundle\StudioApiBundle\Installer:
public: true
arguments:
$bundle: "@=service('kernel').getBundle('PimcorexTemplateBundlex')"
$bundle: "@=service('kernel').getBundle('PimcoreStudioApiBundle')"

# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
Pimcore\Bundle\xTemplateBundlex\Controller\:
Pimcore\Bundle\StudioApiBundle\Controller\:
resource: '../src/Controller'
public: true
tags: [ 'controller.service_arguments' ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# x Template x
# Studio Api
todo

## Features in a Nutshell
Expand Down
4 changes: 2 additions & 2 deletions codeception.dist.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace: Pimcore\Bundle\xTemplateBundlex\Tests
namespace: Pimcore\Bundle\StudioApiBundle\Tests
bootstrap: _bootstrap.php

settings:
Expand All @@ -21,4 +21,4 @@ coverage:
- src/DependencyInjection/*
- src/Repository/*
- src/Installer.php
- src/PimcorexTemplateBundlex.php
- src/PimcoreStudioApiBundle.php
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "pimcore/x-template-name-bundle-x",
"name": "pimcore/studio-api-bundle",
"license": "Pimcore Enterprise License (PEL)",
"type": "pimcore-bundle",
"description": "Pimcore xTemplate Bundlex",
"description": "Pimcore Studio Api Bundle",
"config": {
"discard-changes": true,
"sort-packages": true,
Expand Down Expand Up @@ -36,19 +36,19 @@
},
"autoload": {
"psr-4": {
"Pimcore\\Bundle\\xTemplateBundlex\\": "src/",
"Pimcore\\Bundle\\StudioApiBundle\\": "src/",
"Pimcore\\": "core-extension/Pimcore/"
}
},
"autoload-dev": {
"psr-4": {
"Pimcore\\Bundle\\xTemplateBundlex\\Tests\\": "tests"
"Pimcore\\Bundle\\StudioApiBundle\\Tests\\": "tests"
}
},
"extra": {
"pimcore": {
"bundles": [
"Pimcore\\Bundle\\xTemplateBundlex\\PimcorexTemplateBundlex"
"Pimcore\\Bundle\\StudioApiBundle\\PimcoreStudioApiBundle"
]
}
}
Expand Down
6 changes: 3 additions & 3 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ services:
#
# INSTALLER
#
Pimcore\Bundle\xTemplateBundlex\Installer:
Pimcore\Bundle\StudioApiBundle\Installer:
public: true
arguments:
$bundle: "@=service('kernel').getBundle('PimcorexTemplateBundlex')"
$bundle: "@=service('kernel').getBundle('PimcoreStudioApiBundle')"

# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
Pimcore\Bundle\xTemplateBundlex\Controller\:
Pimcore\Bundle\StudioApiBundle\Controller\:
resource: '../src/Controller'
public: true
tags: [ 'controller.service_arguments' ]
12 changes: 6 additions & 6 deletions doc/01_Installation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Installation of the xTemplate Bundlex
# Installation of the Studio Api Bundle

:::info

Expand All @@ -8,27 +8,27 @@

## Bundle Installation

To install the xTemplate Bundlex, follow the three steps below:
To install the Studio Api Bundle, follow the three steps below:

1) Install the required dependencies:

```bash
composer require pimcore/x-template-name-bundle-x
composer require pimcore/studio-api-bundle
```

2) Make sure the bundle is enabled in the `config/bundles.php` file. The following lines should be added:
```php
use Pimcore\Bundle\xTemplateBundlex\PimcorexTemplateBundlex;
use Pimcore\Bundle\StudioApiBundle\PimcoreStudioApiBundle;
// ...
return [
// ...
xTemplateBundlex::class => ['all' => true],
StudioApiBundle::class => ['all' => true],
// ...
];
```

3) Install the bundle:

```bash
bin/console pimcore:bundle:install PimcorexTemplateBundlex
bin/console pimcore:bundle:install PimcoreStudioApiBundle
```
76 changes: 0 additions & 76 deletions placeholderReplace.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @license http://www.pimcore.org/license PCL
*/

namespace Pimcore\Bundle\xTemplateBundlex\Controller;
namespace Pimcore\Bundle\StudioApiBundle\Controller;

use Symfony\Component\HttpFoundation\Response;

Expand Down
2 changes: 1 addition & 1 deletion src/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @license http://www.pimcore.org/license PCL
*/

namespace Pimcore\Bundle\xTemplateBundlex;
namespace Pimcore\Bundle\StudioApiBundle;

use Pimcore\Extension\Bundle\Installer\SettingsStoreAwareInstaller;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
* @license http://www.pimcore.org/license PCL
*/

namespace Pimcore\Bundle\xTemplateBundlex;
namespace Pimcore\Bundle\StudioApiBundle;

use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\Bundle\EnterpriseBundleInterface;
use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\PimcoreEnterpriseSubscriptionToolsBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\HttpKernel\BundleCollection\BundleCollection;

class PimcorexTemplateBundlex extends AbstractPimcoreBundle implements
class PimcoreStudioApiBundle extends AbstractPimcoreBundle implements
EnterpriseBundleInterface
{
private const ENTERPRISE_BUNDLE_LICENSE_ID = 'xLicensex';
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit.suite.dist.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
suite_namespace: Pimcore\Bundle\xTemplateBundlex\Tests
suite_namespace: Pimcore\Bundle\StudioApiBundle\Tests
2 changes: 1 addition & 1 deletion tests/Unit/DefaultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @license http://www.pimcore.org/license PCL
*/

namespace Pimcore\Bundle\xTemplateBundlex\Tests\Unit;
namespace Pimcore\Bundle\StudioApiBundle\Tests\Unit;

use Codeception\Test\Unit;

Expand Down

0 comments on commit edae75c

Please sign in to comment.