set signature of directoryName method in DirectoryNamerInterface

I believe the method signature in the DirectoryNamerInterface was incorrect as our existing code would no longer work with the new version and the method did not match what was in the documentation. By reverting the method signature to how it was, our code works and the method seems to match the documentation.

Thanks.