Add Fallback for DirectiveLocations

This commit is contained in:
Daniel Tschinder 2018-02-16 16:54:06 +01:00
parent 61fe317faf
commit f9a366e69a

View File

@ -0,0 +1,17 @@
<?php
namespace GraphQL\Type\Definition;
use GraphQL\Language\DirectiveLocation as NewDirectiveLocation;
trigger_error(
'GraphQL\Type\Definition\DirectiveLocation was moved to GraphQL\Language\DirectiveLocation and will be deleted on next release',
E_USER_DEPRECATED
);
/**
* @deprecated moved to GraphQL\Language\DirectiveLocation
*/
class DirectiveLocation extends NewDirectiveLocation
{
}