Created
May 28, 2015 14:24
-
-
Save AhmedSamy/452fc02fe39e6bb37a71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace OverrideBundle; | |
use Doctrine\ODM\MongoDB\Types\Type; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
class OverrideBundle extends Bundle | |
{ | |
public function __construct() | |
{ | |
// Registering custom types | |
Type::registerType('coordinates', 'OverrideBundle\Doctrine\Mongo\Type\CoordinatesType'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment