Swiftpack.co - Package - vapor/service


Stars: 56
Help us keep the lights on



1.0.1 - Feb 12, 2019


  • ServiceType.makeService(_:)'s internal variable was renamed to container. (#27)

1.0.0 - Apr 3, 2018

📦 Introducing Service, a dependency injection / inversion of control framework.

Getting Started: https://docs.vapor.codes/3.0/service/getting-started/

API Docs: https://api.vapor.codes/service/1.0.0/Service

Changes since 1.0.0-rc.2.2:


  • Cleaned up code, organized files, added many missing API docs. Converted some APIs to internal to reduce API surface.
  • Added ContainerAlias type allows a type to simply be an alias for another container. This allows SubContainer to become more specialized, reducing confusion.

Milestone: 1.0.0

1.0.0-rc.2.2 - Mar 25, 2018


  • Added arguments stored property to Environment. This can be used going forward to get and mutate the command line arguments in a non-static way.

API Docs: https://api.vapor.codes/service/1.0.0-rc.2.2/Service/

Milestone: 1.0.0-rc.2.2

1.0.0-rc.2.1 - Mar 22, 2018


  • Added some convenience methods for working with Extend.


1.0.0-rc.2 - Mar 21, 2018


  • Vapor is now running on Swift NIO!
  • Providers now have separate willBoot and didBoot methods. Providers are expected to do as much work as possible in the didBoot method, making it much simpler for other providers to pre-empt that typical work (such as running something before migrations run in Fluent).
  • Provider lifecycle methods now return a Future to ensure proper handling of async work. Note, this does not include the register services method since no async work should be done before there is a container available.


  • Service tags and "needed by/for" have been removed. They were not really useful for anything and unnecessarily complicated the API.