Git Product home page Git Product logo

Comments (7)

asispts avatar asispts commented on August 27, 2024 1

When creating a reproducer, I found that the issue is caused by the -vvv flag that I use when running the command. Without the flag, the log doesn't show up.

from foundry.

nikophil avatar nikophil commented on August 27, 2024

That's strange that you've been reported indirect deprecation notices 🤔

are you using Symfony's PHPUnit bridge?

from foundry.

nikophil avatar nikophil commented on August 27, 2024

those are internal to Foundry, and can be safely ignored

from foundry.

asispts avatar asispts commented on August 27, 2024

Yeah, I know. Those notices appear when running bin/console doctrine:fixture:load, which will clutter your console, especially when you also use monolog bundle.

I can safely ignore the notices during testing, so it's not a problem.

from foundry.

nikophil avatar nikophil commented on August 27, 2024

I don't know if you cna say to monolog that it should only report "direct" deprecations 🤷

not sure how you can ignore them beside of removing deprecation channel from the console handler (but that would mute all deprecations)

from foundry.

asispts avatar asispts commented on August 27, 2024

Without Monolog, you get the logs shown above. At least it doesn't flood the console.

Here’s what the log looks like when Monolog is enabled.
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\ObjectFactory::create()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\ObjectFactory::create()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::find()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::find()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::findOrCreate()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::findOrCreate()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::randomOrCreate()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::randomOrCreate()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::randomSet()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::randomSet()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::randomRange()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::randomRange()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::findBy()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::findBy()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::random()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::random()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::first()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::first()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::last()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::last()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::all()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::all()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:09 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::repository()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\PersistentObjectFactory::repository()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
      }
    }
  }
]
12:23:10 INFO      [deprecation] User Deprecated: The "Zenstruck\Foundry\Persistence\RepositoryDecorator" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\ProxyRepositoryDecorator".
[
  "exception" => ErrorException {
    #message: "User Deprecated: The "Zenstruck\Foundry\Persistence\RepositoryDecorator" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Zenstruck\Foundry\Persistence\ProxyRepositoryDecorator"."
    #code: 0
    #file: "/project/vendor/symfony/error-handler/DebugClassLoader.php"
    #line: 341
    #severity: E_USER_DEPRECATED
    trace: {
      /project/vendor/symfony/error-handler/DebugClassLoader.php:341 { …}
      /project/vendor/zenstruck/foundry/src/Persistence/PersistentObjectFactory.php:86 { …}
      /project/vendor/zenstruck/foundry/src/Persistence/PersistentProxyObjectFactory.php:65 { …}
      /project/vendor/zenstruck/foundry/src/Factory.php:156 { …}
      /project/vendor/zenstruck/foundry/src/ObjectFactory.php:47 { …}
      /project/vendor/zenstruck/foundry/src/Persistence/PersistentObjectFactory.php:209 { …}
      /project/vendor/zenstruck/foundry/src/FactoryCollection.php:73 { …}
      Zenstruck\Foundry\FactoryCollection::Zenstruck\Foundry\{closure}() {}
      /project/vendor/zenstruck/foundry/src/FactoryCollection.php:73 { …}
      /project/vendor/zenstruck/foundry/src/Factory.php:72 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:122 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:26 { …}
      /project/vendor/doctrine/orm/src/EntityManager.php:182 { …}
      /project/vendor/doctrine/data-fixtures/src/Executor/ORMExecutor.php:20 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/LoadDataFixturesDoctrineCommand.php:140 { …}
      /project/vendor/doctrine/doctrine-fixtures-bundle/src/Command/CommandCompatibility.php:18 { …}
      /project/vendor/symfony/console/Command/Command.php:279 { …}
      /project/vendor/symfony/console/Application.php:1047 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:123 { …}
      /project/vendor/symfony/console/Application.php:316 { …}
      /project/vendor/symfony/framework-bundle/Console/Application.php:77 { …}
      /project/vendor/symfony/console/Application.php:167 { …}
      /project/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49 { …}
      /project/vendor/autoload_runtime.php:29 { …}
      /project/bin/console:11 { …}
    }
  }
]

So, I'm not sure. Either need to fix the deprecation or find a way to prevent the logs from showing in the console.

from foundry.

nikophil avatar nikophil commented on August 27, 2024

what I don't understand is why you got these notices. In my applications using foundry 2, they don't even show up 🤔

from foundry.

Related Issues (20)

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.