Skip to content

Commit

Permalink
Add sulu/sulu fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Oct 14, 2024
1 parent 53abf16 commit 320d270
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 101 deletions.

This file was deleted.

43 changes: 0 additions & 43 deletions Content/Application/ResourceLoader/MediaResourceLoader.php

This file was deleted.

7 changes: 0 additions & 7 deletions Resources/config/resolvers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,11 @@
/>
</service>

<!-- TODO move to media bundle -->
<service id="sulu_content.property_resolver.media_selection"
class="Sulu\Bundle\ContentBundle\Content\Application\PropertyResolver\MediaSelectionPropertyResolver">
<tag name="sulu_content.property_resolver"/>
</service>

<service id="sulu_content.property_resolver.default"
class="Sulu\Bundle\ContentBundle\Content\Application\PropertyResolver\Resolver\DefaultPropertyResolver">
<tag name="sulu_content.property_resolver"/>
</service>

<!-- TODO move to admin bundle -->
<service id="sulu_content.property_resolver.block"
class="Sulu\Bundle\ContentBundle\Content\Application\PropertyResolver\Resolver\BlockPropertyResolver">
<call method="setMetadataResolver">
Expand Down
8 changes: 0 additions & 8 deletions Resources/config/resource-loader.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,5 @@
index-by="type"
/>
</service>

<!-- TODO move to media bundle -->
<service id="sulu_content.media_resource_loader"
class="Sulu\Bundle\ContentBundle\Content\Application\ResourceLoader\MediaResourceLoader">
<argument type="service" id="sulu_media.media_manager"/>

<tag name="sulu_content.resource_loader" type="media"/>
</service>
</services>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@

use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use Sulu\Bundle\ContentBundle\Content\Application\ResourceLoader\MediaResourceLoader;
use Sulu\Bundle\ContentBundle\Content\Application\ResourceLoader\ResourceLoaderInterface;
use Sulu\Bundle\ContentBundle\Content\Application\ResourceLoader\ResourceLoaderProvider;
use Sulu\Bundle\MediaBundle\Infrastructure\Sulu\Content\ResourceLoader\MediaResourceLoader;

class ResourceLoaderProviderTest extends TestCase
{
use ProphecyTrait;

public function testGetResourceLoader(): void
{
if (!\class_exists(MediaResourceLoader::class)) {
$this->markTestSkipped('This test is skipped because the class "MediaResourceLoader" does not exist.');
}

$mediaResourceLoader = $this->prophesize(MediaResourceLoader::class);
$categoryResourceLoader = $this->prophesize(ResourceLoaderInterface::class);
$resourceLoaderProvider = new ResourceLoaderProvider(
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
],
"homepage": "https://github.com/sulu/SuluContentBundle",
"license": "MIT",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Prokyonn/sulu.git"
}
],
"require": {
"php": "^8.0",
"doctrine/inflector": "^1.4.1 || ^2.0.1",
Expand All @@ -20,7 +26,7 @@
"friendsofsymfony/rest-bundle": "^2.6 || ^3.0",
"massive/search-bundle": "^2.4",
"ramsey/uuid": "^3.8 || ^4.0",
"sulu/sulu": "^2.5.6 || ^2.6@dev",
"sulu/sulu": "dev-feature/content-resolver as 2.6",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
Expand Down

0 comments on commit 320d270

Please sign in to comment.