Git Product home page Git Product logo

cakephp-newrelic's People

Contributors

caicedodavid avatar jippi avatar kimegede avatar lorenzo avatar spriz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cakephp-newrelic's Issues

`NEW_RELIC_APP_NAME` constant should be optional and taken from the ini file instead

In NewRelic for PHP configuration file you can define the app name and should not be overridden by the Plugin.
If it's not defined then you could try to fetch it from the INI value newrelic.appname like this:

            $newrelic_app_name = ini_get("newrelic.appname");
            if (!empty($newrelic_app_name)) {
                defined('NEW_RELIC_APP_NAME') or define('NEW_RELIC_APP_NAME', $newrelic_app_name);
            }

Error in Autoload when installing with composer

[root@dev app]# composer require jippi/cakephp-newrelic
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Using version dev-master for jippi/cakephp-newrelic
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing composer/installers (v1.0.25)
    Downloading: 100%

  - Installing jippi/cakephp-newrelic (dev-master bcb4c51)
    Cloning bcb4c51931e90ab7a078d1f7b40ed6b176a53d65

Writing lock file
Generating autoload files
Warning: Ambiguous class resolution, "lessc" was found in both "/var/www/html/inv/html/app/vendor/leafo/lessphp/lessc.inc.php" and "/var/www/html/inv/html/app/vendor/oyejorge/less.php/lessc.inc.php", the first will be used.
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
Script Cake\Composer\Installer\PluginInstaller::postAutoloadDump handling the post-autoload-dump event terminated with an exception

Installation failed, reverting ./composer.json to its original content.


  [RuntimeException]
  Unable to get primary namespace for package jippi/cakephp-newrelic.
  Ensure you have added proper 'autoload' section to your plugin's config as stated in README on https://github.com/cakephp/plugin-installer


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...

What would cause this? Is there a workaround?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.