Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-1589: Fixed & renamed Extension ezplatform_graphql to ibexa_graphql #8

Merged
merged 1 commit into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');