Skip to content

Commit

Permalink
Add application start, stop, and state (#90)
Browse files Browse the repository at this point in the history
In practice it may be necessary or desirable to explicitly stop the
Application from running; e.g. when your app is a long-running server
and it needs to be bounced or shut down. This PR refactors the
Application interface to have explicit start() and stop() methods
designed to make it more semantic for starting your app and explicitly
stopping it.
  • Loading branch information
cspray authored Nov 3, 2019
1 parent 6c83e39 commit a262cce
Show file tree
Hide file tree
Showing 37 changed files with 277 additions and 1,038 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 3.0.0-beta7 2019-11-03

#### Added

- Adds `Application::getState` which returns an enum `ApplicationState` signifying whether the Application is Started,
Stopped, or Crashed.

#### Changed

- The DependencyGraph object now expects you to provide a Logger implementation as a constructor dependency instead of
the DependencyGraph creating the Logger object based off of a configuration.

#### Removed

- Removed the Configuration interface and corresponding ConfigurationFactory. In practice this Configuration was
tied to a process for providing an out-of-the-box solution for invoking Applications that was clunky and not well
thought out. For now instead of moving forward with a sub-optimal solution each app will need to provide its own
boilerplate for executing the app. As more experience is gathered in running real-life apps on this framework we
may revisit the Configuration concept.
- Removed the shell script that created a rough app skeleton. More thought needs to go into how this would work before
it is released live.

## 3.0.0-beta6 2019-11-02

#### Fixed
Expand Down
115 changes: 0 additions & 115 deletions bin/labrador-app-skeleton

This file was deleted.

49 changes: 0 additions & 49 deletions resources/schemas/configuration.schema.json

This file was deleted.

27 changes: 0 additions & 27 deletions resources/schemas/configuration.schema.xsd

This file was deleted.

20 changes: 0 additions & 20 deletions resources/templates/app_skeleton/application.php

This file was deleted.

17 changes: 0 additions & 17 deletions resources/templates/app_skeleton/application_test.php

This file was deleted.

22 changes: 0 additions & 22 deletions resources/templates/app_skeleton/dependency_graph.php

This file was deleted.

18 changes: 0 additions & 18 deletions resources/templates/app_skeleton/dependency_graph_test.php

This file was deleted.

9 changes: 0 additions & 9 deletions resources/templates/app_skeleton/injector_provider.php

This file was deleted.

36 changes: 0 additions & 36 deletions resources/templates/app_skeleton/phpunit.xml.php

This file was deleted.

5 changes: 0 additions & 5 deletions resources/templates/app_skeleton/readme.php

This file was deleted.

10 changes: 0 additions & 10 deletions resources/templates/app_skeleton/xml_configuration.php

This file was deleted.

Loading

0 comments on commit a262cce

Please sign in to comment.