Symbols are a new primitive data type available in ES6. With Symbol() we can create a new value that’s not equal to any other value, which is important when avoiding collisions is critical as when dealing with an IoC container.
How are Symbols used in Masquerade?
Each Service Provider should be registered with a unique Symbol to ensure the global integrity of any resolution calls.
This is achieved by exporting a single constant referencing the Symbol in our symbols.ts file.