Download the PHP package hostnet/hn-dependency-injection-plugin without Composer

On this page you can find all versions of the php package hostnet/hn-dependency-injection-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hn-dependency-injection-plugin

hnDependencyInjectionPlugin

Total Downloads Build Status

Installation

  1. Download Composer.
  2. Run
  3. Make extend .
  4. [Optional] override the method to return your own kernel, registering the bundles you want.

  5. Create to configure your Doctrine dbal, Doctrine orm, and possibly the FrameworkBundle. See also the example configuration.
  6. If you don't want to generate the propel backwards compatability layer, add this

    to , or if you prefer to have them separate.

  7. To ensure proper autoloading when using Doctrine entities, remove if you have

    and add the following to your .

    That way Doctrine knows where to find your entities.

  8. Be sure to set up your permissions properly, see "Setting up your permissions".
  9. After this is done we can do a little cleanup. To prevent confusion you should remove , since only the Symfony 2 configuration is read at this point.

Changelog

2.0.0

1.1.0

For this you need to activate the WebProfilerBundle, which you should only activate in dev

Then you need to configure the WebProfilerBundle and the profiler; add this to your config_dev.yml:

Add this to to make the WebProfilerBundle accessible:

And in web/*.php, replace with:

You should now have a new panel in the Symfony 1 web debug toolbar with a link to the Symfony 2 profiler!

1.0.0

0.15

Running the unit-tests

  1. Clone the repository yourself
  2. Go to the directory of the clone
  3. Run
  4. Run

Moving the error handling to Symfony 2

When migrating, you will eventually hit a point where you want to log errors properly. By default the sfFrontWebController contains a try catch block where exceptions will be caught. In order to move all error handling to Symfony 2, you can create your own front controller. If you remove the try catch in this front controller, all errors will be caught by the Symfony 2 uncaught exception handler.

If your route is matched with the sf1 route but sf1 doesn't know about the route, it will throw an sf404ErrorException. This exception will be caught and wrapped into an HttpNotFoundException and the kernel.exception will be fired eventually. This will make sure you can handle all exceptions in Symfony 2.

Additionally, you can throw exceptions in sf1 such as AccessDeniedException, NotFoundHttpException, \RuntimeException etc. They will all be caught. In case of a 404 error, the sf1 fallback will only be triggered once and can only be triggered as a first controller. Once you've succesfully entered Symfony 2 via either the sf1 route or the normal entry, it will no longer be initiated.

To add the front controller, you will have to set it in factories.yml.

To enable the Symfony2 404 handling, you will have to set the following parameter to true:


All versions of hn-dependency-injection-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
doctrine/dbal Version ^2.13.4||^3.1.1
doctrine/doctrine-bundle Version >=1.7.0
doctrine/orm Version >=2.6
symfony/symfony Version ^4.4||^5.0
symfony/symfony1 Version ~1.1.27
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hostnet/hn-dependency-injection-plugin contains the following files

Loading the files please wait ....