Skip to content

Instantly share code, notes, and snippets.

@rande
Created March 19, 2013 14:52
Show Gist options
  • Select an option

  • Save rande/5196776 to your computer and use it in GitHub Desktop.

Select an option

Save rande/5196776 to your computer and use it in GitHub Desktop.
import ioc.loader
import os
class Extension(object):
def load(self, config, container_builder):
path = os.path.dirname(os.path.abspath(__file__))
loader = ioc.loader.YamlLoader()
loader.load("%s/resources/config/services.yml" % path, container_builder)
container_builder.parameters.set('shirka.web.public.dir', "%s/resources/public" % path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment