Skip to content

Commit

Permalink
IBX-1589: Renamed Extension ezplatform_graphql to ibexa_graphql (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz authored Dec 3, 2021
1 parent 8fcaf25 commit 7aae03e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
return new TreeBuilder('ezplatform_graphql');
return new TreeBuilder(IbexaGraphQLExtension::EXTENSION_NAME);
}
}

Expand Down
7 changes: 7 additions & 0 deletions src/bundle/DependencyInjection/IbexaGraphQLExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,19 @@
*/
class IbexaGraphQLExtension extends Extension implements PrependExtensionInterface
{
public const EXTENSION_NAME = 'ibexa_graphql';

private const SCHEMA_DIR_PATH = '/config/graphql/types';
private const EZPLATFORM_SCHEMA_DIR_PATH = '/ezplatform';
private const PACKAGE_DIR_PATH = '/vendor/ibexa/graphql';
private const PACKAGE_SCHEMA_DIR_PATH = '/src/bundle/Resources/config/graphql';
private const FIELDS_DEFINITION_FILE_NAME = 'Field.types.yaml';

public function getAlias(): string
{
return self::EXTENSION_NAME;
}

/**
* {@inheritdoc}
*/
Expand Down
6 changes: 6 additions & 0 deletions src/bundle/IbexaGraphQLBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
namespace Ibexa\Bundle\GraphQL;

use Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;
use Ibexa\Bundle\GraphQL\DependencyInjection\IbexaGraphQLExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

Expand All @@ -21,6 +22,11 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(new Compiler\SchemaWorkersPass());
$container->addCompilerPass(new Compiler\SchemaDomainIteratorsPass());
}

public function getContainerExtension()
{
return new IbexaGraphQLExtension();
}
}

class_alias(IbexaGraphQLBundle::class, 'EzSystems\EzPlatformGraphQL\EzSystemsEzPlatformGraphQLBundle');

0 comments on commit 7aae03e

Please sign in to comment.